Created
November 24, 2022 23:00
-
-
Save b5/138a901b6e5689d238ab98bd3ed4089d to your computer and use it in GitHub Desktop.
GraphQL Example: Fetch stargazers at "go" topic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query ($cursor: String) { | |
topic(name: "go") { | |
repositories( | |
after: $cursor | |
first: 100 | |
orderBy: {field: STARGAZERS, direction: DESC} | |
) { | |
totalCount | |
pageInfo { | |
endCursor | |
startCursor | |
} | |
nodes { | |
id | |
url | |
name | |
stargazerCount | |
issues { | |
totalCount | |
} | |
repositoryTopics(first:25) { | |
totalCount | |
nodes { | |
topic { | |
name | |
} | |
} | |
} | |
updatedAt | |
primaryLanguage { | |
name | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment