Skip to content

GraphQL pagination response, probably displays wrong results in V4 #24566

Discussion options

You must be logged in to vote

Hi Matteo,

Both the REST API and GraphQL API cap the  number of returned results at 1000 and the after argument in your query is pointing to the very last result that can be returned (as the API currently uses base64 to encode these values, we can confirm that “Y3Vyc29yOjEwMDA=” is " cursor:999"). Because there’s no more results we can return,   hasNextPage: false is expected here.

If you wanted to work around the 1000 result limit, I’d suggest trying to further narrow your search. You can use ranges (such as stars:500…600) but as this is searching all repositories on GitHub, you might find you need to filter those results further. Here’s an example that also filters by language:

query {
…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment