-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inner paging doesn't work #227
Comments
Yeah, paging is a big issue for me too. It's a bit unclear to me how one would do manual paging inner sources. It seems one would have rerun the entire query and manually stich together the objects that were created, which seems quite tedious. Also, my brain hurts trying to think how this would work when multiple inner sources are used. |
Right now, is a bug preventing us from using this in production though: octokit/octokit.graphql.net#234 There is another one that might bite us too: octokit/octokit.graphql.net#227
I'm running into this limit as well. Did you try debugging the issue further? It would be great if this could be fixed. |
We do have
|
@jcansdale, hi, no, I didn't try investigate it. |
I have a failing integration test for this here #237 This existing assert so early caught the issue: It only passed because it was checking more than 100 issues were returned with a page size of 100 entries. Because it's returning the first 2 pages, it returns 200 issues. I've changed the page size to 50 so that it returns only 100 issues and the assert fails. I'm struggling to debug the |
The issue appears to be that subqueries only seem to have a single subquery. For example. here is the main query: This has two subqueries, one for issues and another for issue comments. Because the issues Unfortunately, this subquery only contains the issue comments subquery. This means that even though issues comes back with This explains why there are only ever 2 pages of outer elements returned. The main query works fine and has multiple subqueries, but any further queries only have a single subquery. This means that any outer elements with |
The bug appears to be with missing outer sources. This is much easier to fix manually. For example: |
Right now, is a bug preventing us from using this in production though: octokit/octokit.graphql.net#234 There is another one that might bite us too: octokit/octokit.graphql.net#227
Right now, is a bug preventing us from using this in production though: octokit/octokit.graphql.net#234 There is another one that might bite us too: octokit/octokit.graphql.net#227
Right now, is a bug preventing us from using this in production though: octokit/octokit.graphql.net#234 There is another one that might bite us too: octokit/octokit.graphql.net#227
Hello,
I had used example from docs
In my repository 200+ issues. I suggested that if I ran this query, I was getting all issues with their comments. But result was only 200. When I changed paging from auto to manual, so I had got all my issues.
Manual:
The text was updated successfully, but these errors were encountered: