File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments