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

Ability to fetch the last page #148

Open
GP4cK opened this issue Jun 20, 2023 · 0 comments
Open

Ability to fetch the last page #148

GP4cK opened this issue Jun 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@GP4cK
Copy link
Contributor

GP4cK commented Jun 20, 2023

// Required `before`. This is a weird corner case.
// We'd have to invert the ordering of query to get the last few items then re-invert it when emitting the results.
// We'll just ignore it for now.
@Validate(CannotUseWithout, ['before'])
@Validate(CannotUseWith, ['after', 'first'])
@Min(1)
@IsPositive()
last?: number

Right now, we cannot use last without before so if we don't know the cursor of the last item, we cannot fetch the last page.

@GP4cK GP4cK added the enhancement New feature or request label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant