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

Possibility to deactivate pagination #127

Open
nncl opened this issue Nov 21, 2017 · 0 comments
Open

Possibility to deactivate pagination #127

nncl opened this issue Nov 21, 2017 · 0 comments

Comments

@nncl
Copy link

nncl commented Nov 21, 2017

I got a request to disable the pagination if some query is passed through the URL, so would be awesome if mongoose-paginate had this feature. I thought in something like this:

let options = {"page" : 1, "limit" : 10, "active" : false} // active default is true

I simply don't want to do this:

if (req.query.paginate) {
 Users.paginate({...})
} else {
 Users.find({...})
}

Thanks

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

1 participant