We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c1a41 commit 4cdc57dCopy full SHA for 4cdc57d
source/write/bulk-write.txt
@@ -67,6 +67,11 @@ The following example creates an instance of ``InsertOne``:
67
68
To insert multiple documents, create an instance of ``InsertOne`` for each document.
69
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
75
Update Operations
76
~~~~~~~~~~~~~~~~~
77
0 commit comments