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

Add forward and backward pagination #1310

Merged
merged 2 commits into from
Mar 1, 2022

Conversation

dojusa
Copy link
Contributor

@dojusa dojusa commented Feb 28, 2022

Often APIs support only one way of pagination for connections, either forward or backward.

The proposed change is to introduce the aforementioned types of paginations, so APIs can easily support the desired pagination, avoiding clients to miss use their connection.

  • ForwardPaginationArgs which accepts only first and after
  • BackwardPaginationArgs which accepts only last and before

Copy link
Owner

@ghostdogpr ghostdogpr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Since I've never used Relay before, just waiting on @frekw's review but seems good to go.

Copy link
Collaborator

@frekw frekw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks @dojusa 🙏

@ghostdogpr ghostdogpr merged commit 8e40261 into ghostdogpr:master Mar 1, 2022
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.

None yet

3 participants