Skip to content

feat(ConnectionType) support bi-directional pagination #960

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 17 commits into from
Sep 18, 2017

Conversation

rmosolgo
Copy link
Owner

Currently, has*Page is always false for the reverse direction.

Now, you can set

GraphQL::Relay::ConnectionType.bidirectional_pagination = true

And graphql-ruby will provide real values for reverse-direction has*Page checks. This will become the default behavior in a future graphql-ruby version. (But it is not the default behavior now because it has performance implications.)

Fixes #955

@rmosolgo rmosolgo added this to the 1.7.0 milestone Sep 18, 2017
@rmosolgo rmosolgo changed the base branch from master to 1.7.x September 18, 2017 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants