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
* - options: optional query options like sort, limit, etc
4200
4200
* - justOne: optional boolean, if true Mongoose will always set `path` to a document, or `null` if no document was found. If false, Mongoose will always set `path` to an array, which will be empty if no documents are found. Inferred from schema by default.
4201
4201
* - strictPopulate: optional boolean, set to `false` to allow populating paths that aren't in the schema.
4202
+
* - forceRepopulate: optional boolean, defaults to `true`. Set to `false` to prevent Mongoose from repopulating paths that are already populated
* @param {Boolean} [options.strictPopulate=true] Set to false to allow populating paths that aren't defined in the given model's schema.
4236
4237
* @param {Object} [options.options=null] Additional options like `limit` and `lean`.
4237
4238
* @param {Function} [options.transform=null] Function that Mongoose will call on every populated document that allows you to transform the populated document.
4239
+
* @param {Boolean} [options.forceRepopulate=true] Set to `false` to prevent Mongoose from repopulating paths that are already populated
4238
4240
* @param {Function} [callback(err,doc)] Optional callback, executed upon completion. Receives `err` and the `doc(s)`.
0 commit comments