mongoose-aggregate-paginate-v2 icon indicating copy to clipboard operation
mongoose-aggregate-paginate-v2 copied to clipboard

Please implemet lean option

Open keystroke99 opened this issue 4 years ago • 5 comments

Hi request you to enable "lean" option for aggregation

keystroke99 avatar Jan 05 '21 17:01 keystroke99

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

aravindnc avatar Jan 06 '21 05:01 aravindnc

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!

phatlaunchdeck avatar Jun 30 '21 15:06 phatlaunchdeck

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

trycoon avatar Jun 05 '22 21:06 trycoon

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

feyton avatar Nov 09 '22 11:11 feyton

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

this is frustrating not to have

croaklumpish avatar Jul 02 '24 23:07 croaklumpish