Skip to content
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

fix: align previous/next page flag with relay standard #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tcleonard
Copy link

@tcleonard tcleonard commented Sep 5, 2022

solves issue #12
corresponding MR on the Javascript version: graphql/graphql-relay-js#388

@tcleonard tcleonard requested a review from Cito as a code owner September 5, 2022 20:40
@tcleonard
Copy link
Author

@Cito the goal of this MR is to align the computation of the page info with the relay official spec.
Indeed the computation of the "has previous/next page" flags was not matching what is defined in the documentation.
I have added unit tests for the missing cases.
Since the standard definition can return unexpected result in some cases I left some comment to make that very explicit that it is not a bug.

@Cito
Copy link
Member

Cito commented Sep 12, 2022

@tcleonard I want to wait how this is resolved in graphql-relay-js before I port it here.

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.

2 participants