Too Long; Didn't Read
Lean mode in Mongoose is enabled to enhance query performance. Virtuals are attributes derived during query, which the values are not actually persisted in MongoDB. Virtual is one of Mongoose magic attributes, it is disabled by default. Using the plugin mongoose-lean-virtuals, apply virtuals to a Feathers.js service (generated with feathers-cli) In this article, I will be focusing on how to apply the plugin in a typical Feather.js Mongoose service.