-
Notifications
You must be signed in to change notification settings - Fork 2.9k
19724 Add pagination metadata to GraphQL queries #20578
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
base: feature
Are you sure you want to change the base?
Conversation
Holding on this until we've added GraphQL API v2 per #20603. Once that's done, this can be rebased and we'll make the necessary adaptations to move the metadata to the v2 API. |
Following the change in #20603 (which introduced the v2 API), the GraphQL API now defaults to the original v1 format. Seems like it would be most prudent to refactor and duplicate the existing |
@jeremystretch ready for re-review. |
Fixes: #19724
Adds new OffsetPaginated Generic to the v2 of the GraphQL API. For information on OffsetPaginated Generic see: https://strawberry.rocks/docs/django/guide/pagination. This returns metadata of the record counts and affects both the return of GraphQL queries as well as submission for paginated results. This PR updates the documentation on the new formats and puts in tests for the new v2 version of the queries.