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

Select pagination #378

Open
RonnenPodolsky opened this issue Jul 20, 2023 · 1 comment
Open

Select pagination #378

RonnenPodolsky opened this issue Jul 20, 2023 · 1 comment

Comments

@RonnenPodolsky
Copy link

RonnenPodolsky commented Jul 20, 2023

there is no offset in what .select() returns like in curl.
.all() returns all records, i saw use cases for .eachPage() returning all pages just doing something async with every page.
Is there no way to get specific page of results? let's say i have a table with 1200 records and pageSize is 100, i want to create pagination of scrolling where each time you get 100 more - why is there no way to get 101-200, 201-300? How do I use fetchNextPage in this scenario for every new request remembering the last page without an offset value that is not availble here? HOW CAN THIS BE DONE?! please I've been looking at these for days.

@dustinc
Copy link

dustinc commented Oct 28, 2023

@RonnenPodolsky I'm with you 100% on this one. I'm trying to use this from the backend with Node. At the very least .select() should give us the full response, not limit to just records and the effectively-useless-outside-of-the-browser fetchNextPage. We might need to fork this repo and make it more Node.js friendly.

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