Skip to content
Closed
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
6 changes: 3 additions & 3 deletions source/reference/method/db.collection.update.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ db.collection.update()
Definition
----------

.. method:: db.collection.update(query, update, options)
.. method:: db.collection.update(<query>, <update>, <options>)

Modifies an existing document or documents in a collection. The
method can modify specific fields of an existing document or documents
or replace an existing document entirely, depending on the
:ref:`update parameter <update-parameter>`.
or replace an existing document entirely, depending on which operators
are used in the :ref:`update parameter <update-parameter>`.

By default, the :method:`~db.collection.update()` method updates a
**single** document. Set the :ref:`multi-parameter` to update all
Expand Down