Skip to content

Add Pagination to GraphQL API #760

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

Merged
merged 6 commits into from
Oct 12, 2019
Merged

Add Pagination to GraphQL API #760

merged 6 commits into from
Oct 12, 2019

Conversation

connorshea
Copy link
Owner

This updated the graphql gem to a 1.10 pre-release and enables pagination on all list-type queries. The pagination is a bit wonky right now, but it's better than being able to query for hundreds of items at a time, I suppose.

Part of #735.

Pagination only effects the activity query for now.

It seems to have a bug where 'hasNextPage' doesn't work correctly
all the time?
And make a custom PageInfo type with a total field.
@connorshea connorshea added enhancement New feature or request api GraphQL API-related issues and PRs labels Oct 12, 2019
@connorshea connorshea merged commit 30cedc6 into master Oct 12, 2019
@connorshea connorshea deleted the graphql-1-10 branch October 12, 2019 21:24
@connorshea connorshea mentioned this pull request Oct 12, 2019
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api GraphQL API-related issues and PRs enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant