Created
November 26, 2016 04:55
-
-
Save katopz/7441f90696b3586f8ec2d673b88dc4be to your computer and use it in GitHub Desktop.
GraphQL Github Example : Search for top ten stargazers via query
This file contains 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
// Try at : https://graphql-explorer.githubapp.com/ | |
// With query variables below | |
// { "queryString": "language:JavaScript stars:>10000" } | |
query SearchMostTop10Star($queryString: String!) { | |
search(query: $queryString, type: REPOSITORY, first: 10) { | |
repositoryCount | |
edges { | |
node { | |
... on Repository { | |
name | |
descriptionHTML | |
stargazers { | |
totalCount | |
} | |
forks { | |
totalCount | |
} | |
updatedAt | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment