Hi,
I’m looking for all the different properties available in the graphql search query. The query I’m trying to replicate is this one from the V3:
https://api.github.com/search/repositories?q=language:javascript&sort=stars&order=desc
Search through all repo with language JavaScript and sort them by stars
In graphql tried
query topRepos($query: String!) {
search(first: 3, query: $query, type: REPOSITORY) {
repositoryCount
nodes {
... on Repository {
nameWithOwner
stargazers {
totalCount
}
}
}
}
}
// variables
{
"query": "language:javascript sort:stars order:desc",
}
But it doesn’t work. “sorts” gets picked as a search term and it returns repositories with name containing sort.
The documentation is very sparse: https://developer.github.com/v4/query/#search
> query: The search string to look for.
How can I achieve this?