Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions source/usage-examples/updateMany.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ bottom of this page.
Example
-------

In this example, we update documents that match our query in the ``movies``
collection of the ``sample_mflix`` database. We perform the following
In this example, we use a ``Filter`` builder to filter our query for
movies in the genre "Frequently Discussed".

Next, we update documents that match our query in the ``movies`` collection of the
``sample_mflix`` database. We perform the following
updates to the matching documents:

- Add ``Frequently Discussed`` to the array of ``genres`` only if it does not
Expand Down
5 changes: 4 additions & 1 deletion source/usage-examples/updateOne.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ bottom of this page.
Example
-------

In this example, we perform the following updates to the first match for our query
In this example, we use a ``Filter`` builder to query the collection for
a movie with the title "Cool Runnings 2".

Next, we perform the following updates to the first match for our query
in the ``movies`` collection of the ``sample_mflix`` database:

#. Set the value of ``runtime`` to ``99``
Expand Down