diff --git a/source/usage-examples/updateMany.txt b/source/usage-examples/updateMany.txt index 6c48306c..339cf083 100644 --- a/source/usage-examples/updateMany.txt +++ b/source/usage-examples/updateMany.txt @@ -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 diff --git a/source/usage-examples/updateOne.txt b/source/usage-examples/updateOne.txt index c239e9ab..6cd6b11c 100644 --- a/source/usage-examples/updateOne.txt +++ b/source/usage-examples/updateOne.txt @@ -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``