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({...})
}
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:
I simply don't want to do this:
Thanks