Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please implemet lean option #32

Open
keystroke99 opened this issue Jan 5, 2021 · 5 comments
Open

Please implemet lean option #32

keystroke99 opened this issue Jan 5, 2021 · 5 comments

Comments

@keystroke99
Copy link

Hi request you to enable "lean" option for aggregation

@aravindnc
Copy link
Owner

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

@phatlaunchdeck
Copy link

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
Copy link

trycoon commented Jun 5, 2022

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

@feyton
Copy link

feyton commented Nov 9, 2022

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
Copy link

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

this is frustrating not to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants