Skip to content
Merged
Changes from 2 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: 5 additions & 0 deletions source/write/bulk-write.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 the ``_id`` field for each document you insert, otherwise the driver
throws a duplicate key error.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion for clarity / avoiding comma splice

Suggested change
You must specify the ``_id`` field for each document you insert, otherwise the driver
throws a duplicate key error.
You must specify a value for the ``_id`` field for each document you insert. If you don't, the driver
throws a duplicate key error.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S:

Suggested change
You must specify the ``_id`` field for each document you insert, otherwise the driver
throws a duplicate key error.
You must specify the ``_id`` field for each document you insert, otherwise the driver
throws a ``DuplicateKeyError``.


Update Operations
~~~~~~~~~~~~~~~~~

Expand Down
Loading