Guest User

Untitled

a guest
Jun 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. import { gql } from 'apollo-boost';
  2.  
  3. const GET_CURSOR_ORG_DATA = gql`
  4. query($cursor: String) {
  5. organization(login: "ERS-HCL") {
  6. repositories(first: 50, after: $cursor) {
  7. totalCount
  8. pageInfo {
  9. endCursor
  10. __typename
  11. }
  12. edges {
  13. cursor
  14. node {
  15. name
  16. descriptionHTML
  17. license
  18. stargazers(first: 50) {
  19. totalCount
  20. }
  21. repositoryTopics(first: 20) {
  22. edges {
  23. node {
  24. topic {
  25. name
  26. }
  27. }
  28. }
  29. }
  30. forkCount
  31. isFork
  32. createdAt
  33. updatedAt
  34. pushedAt
  35. homepageUrl
  36. url
  37. primaryLanguage {
  38. name
  39. color
  40. }
  41. collaborators(first: 50, affiliation: DIRECT) {
  42. edges {
  43. node {
  44. name
  45. login
  46. avatarUrl
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. `;
  56.  
  57. const GET_ORG_DATA = gql`
  58. {
  59. organization(login: "ERS-HCL") {
  60. repositories(first: 50) {
  61. totalCount
  62. pageInfo {
  63. endCursor
  64. __typename
  65. }
  66. edges {
  67. node {
  68. name
  69. descriptionHTML
  70. license
  71. stargazers(first: 50) {
  72. totalCount
  73. }
  74. repositoryTopics(first: 20) {
  75. edges {
  76. node {
  77. topic {
  78. name
  79. }
  80. }
  81. }
  82. }
  83. forkCount
  84. isFork
  85. createdAt
  86. updatedAt
  87. pushedAt
  88. homepageUrl
  89. url
  90. primaryLanguage {
  91. name
  92. color
  93. }
  94. collaborators(first: 50, affiliation: DIRECT) {
  95. edges {
  96. node {
  97. name
  98. login
  99. avatarUrl
  100. }
  101. }
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. `;
  109.  
  110. export {GET_CURSOR_ORG_DATA,GET_ORG_DATA};
Add Comment
Please, Sign In to add comment