diff --git a/source/write/bulk-write.txt b/source/write/bulk-write.txt index 0e20d3d1..56ca1645 100644 --- a/source/write/bulk-write.txt +++ b/source/write/bulk-write.txt @@ -67,6 +67,11 @@ The following example creates an instance of ``InsertOne``: To insert multiple documents, create an instance of ``InsertOne`` for each document. +.. note:: + + You must specify a value for the ``_id`` field for each document you insert. If you don't, + the driver throws a ``DuplicateKeyError``. + Update Operations ~~~~~~~~~~~~~~~~~