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

Please implemet lean option #32

Open keystroke99 opened 3 years ago

keystroke99 commented 3 years ago

Hi request you to enable "lean" option for aggregation

aravindnc commented 3 years ago

@keystroke99 Aggregate output already 'lean'ed. I'm not sure if that can be send as Mongoose objects.

phatlaunchdeck commented 3 years ago

Hey @aravindnc not sure if I should post this here but it's related to leaning as well. So in the other package (mongoose-paginate-v2), we can call something like this lean: { virtuals: true, autopopulate: true } to include the virtuals which are defined in the model schema and populate fields. The autopopulate works well but the virtuals are not included, any idea how I can achieve this? Thanks!

trycoon commented 2 years ago

I'm also missing virtualsm like "id" instead of "_id".

feyton commented 1 year ago

Hey @aravindnc not sure if I should post this here but it's related to leaning as well. So in the other package (mongoose-paginate-v2), we can call something like this lean: { virtuals: true, autopopulate: true } to include the virtuals which are defined in the model schema and populate fields. The autopopulate works well but the virtuals are not included, any idea how I can achieve this? Thanks!

This is the same functionality I am looking for

croaklumpish commented 3 months ago

I'm also missing virtualsm like "id" instead of "_id".

this is frustrating not to have