aravindnc / mongoose-aggregate-paginate-v2

A page based custom aggregate pagination library for Mongoose with customizable labels.
MIT License
131 stars 24 forks source link

Global options config like `mongoose-paginate-v2` #6

Closed wxs77577 closed 4 years ago

wxs77577 commented 5 years ago

Could you add global options config like mongoose-paginate-v2 please?

Set custom default options for all queries

config.js:

var mongoosePaginate = require('mongoose-paginate-v2');

mongoosePaginate.paginate.options = { 
  lean:  true,
  limit: 20
};
aravindnc commented 4 years ago

@wxs77577 Sorry for the delay. I will add an update this week.