Using graphql search does not return all repositories. Paging does not allow me to page through all repos #49432
Unanswered
jenol
asked this question in
Apps, API and Webhooks
Replies: 1 comment
-
|
i suspect using GQL search doesn't work reliably for the same reason why using GH Advanced Search doesn't always work reliably (probably issues with indexing or indexes). If i remember correctly i even saw issues with search without paging (less results than page size) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
GraphQL API Search vs Org Repos
Bug
Body
search seems to return fewer repositories:
returns
Does search skip archived repos? I had no chance to compare the results because I have issues with search paging as well.
The paging problem is related to getting a false
hasNextPagehalf way paging through the results. Ignoring thehasNextPageand go by result count doesn't seem to work either because I get zero results.For search I am using this query:
Doing the same thing with getting an organization's repos seems to work okay:
My paging logic seems solid. Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions