File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,17 +62,17 @@ document that matches a specified filter.
62
62
To update the *first* document in the ``sample_mflix.movies``
63
63
collection where ``title`` equals ``"Tag"``:
64
64
65
- .. code-block::
65
+ .. code-block:: javascript
66
66
67
67
use sample_mflix
68
68
69
- db.movies.updateOne( { title: "Tag " },
69
+ db.movies.updateOne( { title: "Twilight " },
70
70
{
71
71
$set: {
72
- plot: "One month every year, five highly competitive friends
73
- hit the ground running for a no-holds-barred game of tag "
74
- }
75
- { $currentDate: { lastUpdated: true } }
72
+ plot: "A teenage girl risks everything–including her life–when she
73
+ falls in love with a vampire. "
74
+ },
75
+ $currentDate: { lastUpdated: true }
76
76
})
77
77
78
78
The update operation:
You can’t perform that action at this time.
0 commit comments