-
We have the same code which applies
What's the way to change it to enable virtuals for |
Beta Was this translation helpful? Give feedback.
Answered by
vkarpov15
Jun 15, 2021
Replies: 1 comment
-
Also you would need to use the mongoose-lean-virtuals plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Uzlopak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if (this.options.lean == null) this.mongooseOptions({lean: {virtuals:true}});
Also you would need to use the mongoose-lean-virtuals plugin