From c5dcae52a77d1ac90ca8c0cea7f371b73982062e Mon Sep 17 00:00:00 2001 From: Isabel Atkinson Date: Thu, 26 Sep 2024 11:37:01 -0400 Subject: [PATCH] Fix definition for bulk write update operation (#1669) --- source/crud/bulk-write.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/crud/bulk-write.md b/source/crud/bulk-write.md index 5c554e0182..5918e6417c 100644 --- a/source/crud/bulk-write.md +++ b/source/crud/bulk-write.md @@ -518,10 +518,15 @@ If the document to be inserted does not contain an `_id` field, drivers MUST gen "multi": Optional, "upsert": Optional, "arrayFilters": Optional, - "hint": Optional + "hint": Optional, + "collation": Optional } ``` +The `update` command document is used for update and replace operations. For update operations, the `updateMods` field +corresponds to the `update` field in `UpdateOneModel` and `UpdateManyModel`. For replace operations, the `updateMods` +field corresponds to the `replacement` field in `ReplaceOneModel`. + #### Delete ```javascript @@ -866,6 +871,8 @@ batch-splitting to standardize implementations across drivers and simplify batch ## **Changelog** +- 2024-09-25: Add `collation` field to `update` document and clarify usage of `updateMods`. + - 2024-09-25: Update the `partialResult` population logic to account for ordered bulk writes. - 2024-09-18: Relax numeric type requirements for indexes.