aravindnc / mongoose-aggregate-paginate-v2

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

Fixed the issue with setting of the global options #39

Closed ashfaqnisar closed 2 years ago

ashfaqnisar commented 2 years ago

Exporting the aggregatePaginate directly to set the global options.

ashfaqnisar commented 2 years ago

This PR fixes the issue #37

ashfaqnisar commented 2 years ago

Do we need aggregatePaginate or just paginate while setting the global options

ashfaqnisar commented 2 years ago

Hey @aravindnc, it would be great if you could merge this.

aravindnc commented 2 years ago

@ashfaqnisar Thanks. But any idea why the build is getting errored.

aravindnc commented 2 years ago

Do we need aggregatePaginate or just paginate while setting the global options

It should be aggregatePaginate since there is already another plugin for paginate.

ashfaqnisar commented 2 years ago

@ashfaqnisar Thanks. But any idea why the build is getting errored.

I think it was due to the minimum node version.