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 pagination combinator "$N items starting at $ID" #27

Open
Heimdell opened this issue Jun 17, 2021 · 1 comment
Open

Add pagination combinator "$N items starting at $ID" #27

Heimdell opened this issue Jun 17, 2021 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Heimdell
Copy link

Please add a combinator that returns given amount of items starting from given ID. It can sort items by ID or be potentially generalised to other sorting orders.

I've seen this on may sites. This might be a common use case.

@Martoon-00 Martoon-00 added the good first issue Good for newcomers label Jun 18, 2021
@Martoon-00
Copy link
Member

Sorting is already handled independently, and we can probably assume that the user will use the same sorting when switching pages with cursor pagination. So here I propose adding some CursorPaginationParams combinator that is similar to the existing PaginationParams, maybe extract the common part to avoid duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants