UNPKG

mongoose-lean-virtuals

Version:

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

12 lines (6 loc) 594 B
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead find the corresponding `.pug` file or test case in the `test/docs` directory. --> **Summary** <!-- Explain the **motivation** for making this change. What problem does the pull request solve? --> **Examples** <!-- If this code fixes a bug or adds a new feature, provide an example demonstrating the change, unless you added a test. -->