I think the response I got from my paginated query might be wrong.
This is my query:
query($language: String!, $endCursor: String, $numberOfRepos: Int){
search(query: $language, type: REPOSITORY, first: $numberOfRepos, after: $endCursor) {
pageInfo {
startCursor
hasNextPage
endCursor
}
edges {
node {
... on Repository {
nameWithOwner
isArchived
stargazers{
totalCount
}
}
}
}
}
}
And those are my input variables
{
"language": "stars:>=500 sort:stars",
"endCursor": "Y3Vyc29yOjk5OQ==",
"numberOfRepos": 1
}
And finally this is the response I got:
{
"data": {
"search": {
"pageInfo": {
"startCursor": "Y3Vyc29yOjEwMDA=",
"hasNextPage": false,
"endCursor": "Y3Vyc29yOjEwMDA="
},
"edges": [
{
"node": {
"nameWithOwner": "foreversd/forever",
"isArchived": false,
"stargazers": {
"totalCount": 12813
}
}
}
]
}
}
}
Now as you can see this repo has about 12k stars and I got hasNextPage false.
I believe that this is not correct, I cannot believe that there are no more repositories with more than 500 stars after this one D=.
Am I missing something? Is my query wrong?
I want to get all the repositories with stars count bigger than 500 and ordered by starts count from big to small.
Any idea?
Thanks