Skip to content

Commit ea867ab

Browse files
nickldprustagir
authored andcommitted
DOCSP-39726: Usage Example that describe query (#114)
# Pull Request Info [PR Reviewing Guidelines](https://github.com/mongodb/docs-java/blob/master/REVIEWING.md) [JIRA ](https://jira.mongodb.org/browse/DOCSP-30726#r1226735778) Staging - [UpdateMany](https://docs-mongodbcom-staging.corp.mongodb.com/kotlin/docsworker-xlarge/DOCSP-39726-Usage-Example-describe-query/usage-examples/updateMany/) page, [updateOne](https://docs-mongodbcom-staging.corp.mongodb.com/kotlin/docsworker-xlarge/DOCSP-39726-Usage-Example-describe-query/usage-examples/updateOne/) page ## Self-Review Checklist - [x] Is this free of any warnings or errors in the RST? - [x] Did you run a spell-check? - [x] Did you run a grammar-check? - [x] Are all the links working? (cherry picked from commit 7c36250)
1 parent 196631e commit ea867ab

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+
Next, we 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+
Next, we 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)