Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { gql } from 'apollo-boost';
- const GET_CURSOR_ORG_DATA = gql`
- query($cursor: String) {
- organization(login: "ERS-HCL") {
- repositories(first: 50, after: $cursor) {
- totalCount
- pageInfo {
- endCursor
- __typename
- }
- edges {
- cursor
- node {
- name
- descriptionHTML
- license
- stargazers(first: 50) {
- totalCount
- }
- repositoryTopics(first: 20) {
- edges {
- node {
- topic {
- name
- }
- }
- }
- }
- forkCount
- isFork
- createdAt
- updatedAt
- pushedAt
- homepageUrl
- url
- primaryLanguage {
- name
- color
- }
- collaborators(first: 50, affiliation: DIRECT) {
- edges {
- node {
- name
- login
- avatarUrl
- }
- }
- }
- }
- }
- }
- }
- }
- `;
- const GET_ORG_DATA = gql`
- {
- organization(login: "ERS-HCL") {
- repositories(first: 50) {
- totalCount
- pageInfo {
- endCursor
- __typename
- }
- edges {
- node {
- name
- descriptionHTML
- license
- stargazers(first: 50) {
- totalCount
- }
- repositoryTopics(first: 20) {
- edges {
- node {
- topic {
- name
- }
- }
- }
- }
- forkCount
- isFork
- createdAt
- updatedAt
- pushedAt
- homepageUrl
- url
- primaryLanguage {
- name
- color
- }
- collaborators(first: 50, affiliation: DIRECT) {
- edges {
- node {
- name
- login
- avatarUrl
- }
- }
- }
- }
- }
- }
- }
- }
- `;
- export {GET_CURSOR_ORG_DATA,GET_ORG_DATA};
Add Comment
Please, Sign In to add comment