Skip to content

Instantly share code, notes, and snippets.

@edwindotcom
Last active September 21, 2020 22:43
Show Gist options
  • Save edwindotcom/17005f658976a552905f013183ba1db3 to your computer and use it in GitHub Desktop.
Save edwindotcom/17005f658976a552905f013183ba1db3 to your computer and use it in GitHub Desktop.
github gql - search by most stars
query SearchMostTop10Star($queryString: String!, $number_of_repos:Int!) {
search(query: $queryString, type: REPOSITORY, first: $number_of_repos) {
repositoryCount
edges {
node {
... on Repository {
name
url
description
stargazers {totalCount}
}
}
}
}
}
# Variables
{
"queryString": "language:JavaScript stars:>10000",
"number_of_repos": 10
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment