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

get all results #78

Closed
antonioaltamura opened this issue Feb 7, 2016 · 3 comments
Closed

get all results #78

antonioaltamura opened this issue Feb 7, 2016 · 3 comments

Comments

@antonioaltamura
Copy link

hi, maybe it's a strange request:
how can I get all results using this module?
Basically a value for offset and limit I can be sure I get all results.

Thinking about it it's a pretty basic usage.
Otherwise I have to check the existence of those fields in query string and if they are not set I have to do a plain mongoose find().

@Kerumen
Copy link

Kerumen commented Feb 9, 2016

Infinity will do the trick: { limit: Infinity, offset: 0 }

@antonioaltamura
Copy link
Author

very thanks, i will try it

@Nox-404
Copy link

Nox-404 commented Mar 10, 2016

@Kerumen This doesn't work, it yelds : limit value must be non-negative
Could you reopen the issue ?

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

3 participants