From 5b40f1b413fa9754163da83c9fcfb0bd79245b33 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Tue, 3 Sep 2024 09:40:13 -0400 Subject: [PATCH] Update lib/model.js Co-authored-by: Hafez --- lib/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model.js b/lib/model.js index 3891bef8a1..e567ea5d1c 100644 --- a/lib/model.js +++ b/lib/model.js @@ -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. *