You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* _During save, no custom options are applied to the document before being sent to the database._
2467
2467
*
2468
2468
* @param {Object} [options]
2469
+
* @param {Boolean} [options.getters=false] if true, apply all getters, including virtuals
2470
+
* @param {Boolean} [options.virtuals=false] if true, apply virtuals. Use `{ getters: true, virtuals: false }` to just apply getters, not virtuals
2471
+
* @param {Boolean} [options.minimize=true] if true, omit any empty objects from the output
2472
+
* @param {Function|null} [options.transform=null] if set, mongoose will call this function to allow you to transform the returned object
2473
+
* @param {Boolean} [options.depopulate=false] if true, replace any conventionally populated paths with the original id in the output. Has no affect on virtual populated paths.
2474
+
* @param {Boolean} [options.versionKey=true] if false, exclude the version key (`__v` by default) from the output
0 commit comments