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

Is this library cursor based or page based? #51

Closed anuraagy closed 2 months ago

anuraagy commented 1 year ago

https://github.com/aravindnc/mongoose-aggregate-paginate-v2/blob/1be8d509a2c298e5d68ebe3369259366e243cf48/lib/mongoose-aggregate-paginate.js#L108

Based on this code, it looks like it's page based. Please let me know if I'm looking at something incorrectly.

abdimussa87 commented 1 year ago

Is it bad if it's page based?

anuraagy commented 1 year ago

There is nothing wrong with it being page based! But, the README lists the library as being cursor based, which would be incorrect?

aravindnc commented 2 months ago

Its page based. Updated readme.