Skip to content

Commit

Permalink
Update lib/model.js
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey committed Mar 11, 2024
1 parent 425bb85 commit 7835396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -3375,7 +3375,7 @@ function _setIsNew(doc, val) {
* trip to MongoDB.
*
* Mongoose will perform casting on all operations you provide.
* The only exception [setting the `update` operator for `updateOne` or `updateMany` to a pipeline](https://www.mongodb.com/docs/manual/reference/method/db.collection.bulkWrite/#updateone-and-updatemany): Mongoose does **not** cast update pipelines.
* The only exception is [setting the `update` operator for `updateOne` or `updateMany` to a pipeline](https://www.mongodb.com/docs/manual/reference/method/db.collection.bulkWrite/#updateone-and-updatemany): Mongoose does **not** cast update pipelines.
*
* This function does **not** trigger any middleware, neither `save()`, nor `update()`.
* If you need to trigger
Expand Down

0 comments on commit 7835396

Please sign in to comment.