Skip to content

Commit 4e87547

Browse files
committed
DOCSP-39726: Usage Example that describe query
1 parent 30cadf0 commit 4e87547

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

source/usage-examples/updateMany.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ bottom of this page.
5656
Example
5757
-------
5858

59-
In this example, we update documents that match our query in the ``movies``
60-
collection of the ``sample_mflix`` database. We perform the following
59+
In this example, we use a ``Filter`` builder to filter our query for
60+
movies in the genre "Frequently Discussed".
61+
62+
We then update documents that match our query in the ``movies`` collection of the
63+
``sample_mflix`` database. We perform the following
6164
updates to the matching documents:
6265

6366
- Add ``Frequently Discussed`` to the array of ``genres`` only if it does not

source/usage-examples/updateOne.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ bottom of this page.
5454
Example
5555
-------
5656

57-
In this example, we perform the following updates to the first match for our query
57+
In this example, we use a ``Filter`` builder to query the collection for
58+
a movie with the title "Cool Runnings 2".
59+
60+
We then perform the following updates to the first match for our query
5861
in the ``movies`` collection of the ``sample_mflix`` database:
5962

6063
#. Set the value of ``runtime`` to ``99``

0 commit comments

Comments
 (0)