Please implemet lean option
keystroke99 opened this issue · 5 comments
Hi request you to enable "lean" option for aggregation
@keystroke99 Aggregate output already 'lean'ed. I'm not sure if that can be send as Mongoose objects.
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!
I'm also missing virtualsm like "id" instead of "_id".
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. Theautopopulate
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