Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/write/bulk-write.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ To insert multiple documents, create an instance of ``InsertOne`` for each docum

.. note::

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

Update Operations
~~~~~~~~~~~~~~~~~
Expand Down
Loading