Skip to content

Commit 6b62de7

Browse files
Fix description for bulk write update operation
1 parent b5cbae0 commit 6b62de7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/crud/bulk-write.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,15 @@ and add it as the `_id` field at the beginning of the document.
518518
"multi": Optional<Boolean>,
519519
"upsert": Optional<Boolean>,
520520
"arrayFilters": Optional<Array>,
521-
"hint": Optional<Document | String>
521+
"hint": Optional<Document | String>,
522+
"collation": Optional<Document>
522523
}
523524
```
524525

526+
The `update` command document is used for update and replace operations. For update operations, the `updateMods` field
527+
corresponds to the `update` field in `UpdateOneModel` and `UpdateManyModel`. For replace operations, the `updateMods`
528+
field corresponds to the `replacement` field in `ReplaceOneModel`.
529+
525530
#### Delete
526531

527532
```javascript

0 commit comments

Comments
 (0)