UNPKG

mongoose-lean-virtuals

Version:

Attach virtuals to the results of mongoose queries when using `.lean()`

14 lines (7 loc) 583 B
<!-- *Before creating an issue please make sure you are using the latest version of mongoose --> **Do you want to request a *feature* or report a *bug*?** **What is the current behavior?** **If the current behavior is a bug, please provide the steps to reproduce.** **What is the expected behavior?** **What are the versions of Node.js, mongoose-lean-getters, and Mongoose are you are using? Note that "latest" is not a version.** <!-- You can print `mongoose.version` to get your current version of Mongoose: https://mongoosejs.com/docs/api.html#mongoose_Mongoose-version -->