Skip to content

Instantly share code, notes, and snippets.

@katopz
Created November 26, 2016 04:55
Show Gist options
  • Save katopz/7441f90696b3586f8ec2d673b88dc4be to your computer and use it in GitHub Desktop.
Save katopz/7441f90696b3586f8ec2d673b88dc4be to your computer and use it in GitHub Desktop.
GraphQL Github Example : Search for top ten stargazers via query
// 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