Skip to content

DOCSP-45737: Clarify that users must specify id for bulk inserted docs #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 2, 2024
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: 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 a value for the ``_id`` field for each document you insert. If you don't,
the driver throws a ``DuplicateKeyError``.

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

Expand Down
Loading