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

Pagination question #207

Open
mveron opened this issue Apr 13, 2019 · 2 comments
Open

Pagination question #207

mveron opened this issue Apr 13, 2019 · 2 comments

Comments

@mveron
Copy link

mveron commented Apr 13, 2019

Hi Diego

I have a collection with +5000 documents and i´m wondering how pagination works in your API generator. I read the documentation but I´m still wondering if your API calculates automatically the number of pages depending on the count or if it has to be calculated by playing with limit and page parameters. I´m getting the "cursor timeout or killed" error in MongoDB when querying big amounts of documents. I will appreciate your comments and recommendations to handle this type of issues.

Best regards.

@ghost
Copy link

ghost commented Jun 17, 2020

i was also just trying to figure this out. Diego, sorry for so many questions back to back. I am just moving into this arena and loving it.

Is there a way to add the page number and total pages to the body of the response or is the assumption that the app consuming the material will take the total responses and divide this by the number of responses per page and take care of pages from there?

I would be more than happy to be directed to reading material if that is more appropriate than answering the question here. even a "google this instead" would be great

@honkskillet
Copy link

I would think that pagination would be out of the scope of this basic generator. @diegohaz Do you agree?

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