aravindnc/mongoose-paginate-v2

More generic pagination options to avail reading all docs

MohRaouf opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
I get the paginated data with a query params, what if I want to get all docs from the same endpoint ?

Describe the solution you'd like
I want to make it more general so that when no query parameters provided it returns all docs,

Describe alternatives you've considered
unfortunately due to the default value of limit option = 10 I've to set is with random high number to get all docs

{ offset: offset | 0, limit:limit|1000 , sort: 'title' }

Additional context
please consider another option to return all docs

@MohRaouf Thanks for the suggestion. I will add this as an option.