Skip to content

Commit 31b9f6d

Browse files
authored
DOCSP-30762 fixed typo and troubleshooting example (#268)
* DOCSP-30762 fixed typo and troubleshooting example * fixing one more typo
1 parent 8c2428e commit 31b9f6d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/crud/update.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ document that matches a specified filter.
6060
.. example::
6161

6262
To update the *first* document in the ``sample_mflix.movies``
63-
collection where ``title`` equals ``"Tag"``:
63+
collection where ``title`` equals ``"Twilight"``:
6464

6565
.. code-block:: javascript
6666

@@ -69,16 +69,15 @@ document that matches a specified filter.
6969
db.movies.updateOne( { title: "Twilight" },
7070
{
7171
$set: {
72-
plot: "A teenage girl risks everything–including her life–when she
73-
falls in love with a vampire."
72+
plot: "A teenage girl risks everything–including her life–when she falls in love with a vampire."
7473
},
7574
$currentDate: { lastUpdated: true }
7675
})
7776

7877
The update operation:
7978

8079
- Uses the :update:`$set` operator to update the value of the
81-
``plot`` field for the movie ``Tag``.
80+
``plot`` field for the movie ``Twilight``.
8281

8382
- Uses the :update:`$currentDate` operator to update the value
8483
of the ``lastUpdated`` field to the current date. If

0 commit comments

Comments
 (0)