Skip to content

Commit d5a1b89

Browse files
committed
DOCSP-45737: Clarify that users must specify id for bulk inserted docs (#133)
(cherry picked from commit 4cdc57d)
1 parent aa31332 commit d5a1b89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/write/bulk-write.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ The following example creates an instance of ``InsertOne``:
6767

6868
To insert multiple documents, create an instance of ``InsertOne`` for each document.
6969

70+
.. note::
71+
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``.
74+
7075
Update Operations
7176
~~~~~~~~~~~~~~~~~
7277

0 commit comments

Comments
 (0)