Skip to content

limit and skip fields must be numeric #383

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

Closed
volkancakil opened this issue Apr 11, 2017 · 1 comment
Closed

limit and skip fields must be numeric #383

volkancakil opened this issue Apr 11, 2017 · 1 comment

Comments

@volkancakil
Copy link

volkancakil commented Apr 11, 2017

we need to cast req.query object params to the numeric values

from model's static list method
.skip(Number(skip)) .limit(Number(limit))

Automattic/mongoose#3763

@osahner
Copy link
Contributor

osahner commented Apr 11, 2017

this has been fixed with changeset #306

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