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

Cursor based pagination (backwards) #138

Open
tyt2y3 opened this issue Aug 2, 2023 · 1 comment
Open

Cursor based pagination (backwards) #138

tyt2y3 opened this issue Aug 2, 2023 · 1 comment

Comments

@tyt2y3
Copy link
Member

tyt2y3 commented Aug 2, 2023

I noticed we have hasPreviousPage and startCursor in PageInfo, but in CursorInput, we only have limit.
In the implementation, we only call first() on SeaORM's cursor.
I was thinking, may be we also need a last bool on CursorInput?
That way we can make use of startCursor to go backwards.

@karatakis
Copy link
Collaborator

Good observation. We can plan it to be added in later versions.

@karatakis karatakis added this to the Good to have features milestone Aug 7, 2023
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

No branches or pull requests

2 participants