Skip to content

Commit

Permalink
Update lib/model.js
Browse files Browse the repository at this point in the history
Co-authored-by: Hafez <a.hafez852@gmail.com>
  • Loading branch information
vkarpov15 and AbdelrahmanHafez committed Sep 3, 2024
1 parent b42be65 commit 5b40f1b
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 @@ -3373,7 +3373,7 @@ Model.bulkWrite = async function bulkWrite(ops, options) {
*
* - one of the provided documents fails validation. In this case, `bulkSave()` does not send a `bulkWrite()`, and throws the first validation error.
* - `bulkWrite()` fails (for example, due to being unable to connect to MongoDB or due to duplicate key error)
* - `bulkWrite()` did not insert or update any documents. In this case, `bulkSave()` will throw a DocumentNotFound error.
* - `bulkWrite()` did not insert or update **any** documents. In this case, `bulkSave()` will throw a DocumentNotFound error.
*
* Note that `bulkSave()` will **not** throw an error if only some of the `save()` calls succeeded.
*
Expand Down

0 comments on commit 5b40f1b

Please sign in to comment.