Skip to content

Commit 8c2428e

Browse files
authored
DOCSP-30355 Fixed Code Block (#265)
* fixed code block * added javascript on updateOne * changed example to one that exists in the database * updated plot field * grammar * m dash
1 parent f8acecc commit 8c2428e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/crud/update.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ document that matches a specified filter.
6262
To update the *first* document in the ``sample_mflix.movies``
6363
collection where ``title`` equals ``"Tag"``:
6464

65-
.. code-block::
65+
.. code-block:: javascript
6666

6767
use sample_mflix
6868

69-
db.movies.updateOne( { title: "Tag" },
69+
db.movies.updateOne( { title: "Twilight" },
7070
{
7171
$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 }
7676
})
7777

7878
The update operation:

0 commit comments

Comments
 (0)