Skip to content

Commit d588a78

Browse files
authored
Undo DOCSP-45737 (#134)
1 parent 4cdc57d commit d588a78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/write/bulk-write.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ To insert multiple documents, create an instance of ``InsertOne`` for each docum
6969

7070
.. note::
7171

72-
You must specify a value for the ``_id`` field for each document you insert. If you don't,
73-
the driver throws a ``DuplicateKeyError``.
72+
Duplicate ``_id`` values violate unique index constraints, which causes the
73+
driver to return a ``DuplicateKeyError``. To avoid this error, ensure that
74+
each document you insert has a unique ``_id`` value.
7475

7576
Update Operations
7677
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)