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

.limit(0) not limiting to empty array #655

leore opened this Issue Jan 31, 2015 · 4 comments


None yet
3 participants

leore commented Jan 31, 2015

When I do .limit(0) I end up getting the entire dataset back. 0.6.* did not have this behaviour


This comment has been minimized.


vschoettke commented Jan 31, 2015

Duplicate of #585. This is already fixed in the repo but yet not published to npm.

Just out of curiosity, why do you want to execute limit(0) query?

@vschoettke vschoettke closed this Jan 31, 2015


This comment has been minimized.

leore commented Jan 31, 2015

We have an API that takes count and offset as query parameters. Our users and apps that consume this api have corner cases where they pass in count=0 and expect to get an empty array not the full data set.


This comment has been minimized.

leore commented Feb 2, 2015

When do you think #585 will be published to npm?


This comment has been minimized.


tgriesser commented Feb 2, 2015

Ah sorry abt. that... I'll do a quick pass through and try and get a release out today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment