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 an option to enable paginated retrieval of resource lists #24

Closed
jay-jlm opened this issue Oct 19, 2016 · 1 comment
Closed

Add an option to enable paginated retrieval of resource lists #24

jay-jlm opened this issue Oct 19, 2016 · 1 comment

Comments

@jay-jlm
Copy link

jay-jlm commented Oct 19, 2016

Maybe leverage something like this:
https://www.npmjs.com/package/mongoose-paginate

@diegohaz
Copy link
Owner

The GET /resources routes already support pagination through this library.

You can just call GET /resources?page=2&limit=20 and it should work.

I personally don't like mongoose-paginate. It has some performance issues and lacks integration with query strings.

Take a look at querymen and see if it fits your needs. Otherwise you can open an issue there so we can improve the library. :)

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