Skip to content

Commit 0808fcc

Browse files
DOCSP-50652-insertMany-missing-brackets (#12369)
1 parent cb33732 commit 0808fcc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

content/manual/upcoming/source/core/index-unique.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ that are all missing the ``grade`` field.
263263

264264
.. code-block:: javascript
265265

266-
db.students.insertMany(
267-
{ "name": "Meredith", "age": 12 },
268-
{ "name": "Olivia", "age": 11 },
269-
{ "name": "Benjamin" }
270-
)
266+
db.students.insertMany( [
267+
{ "name": "Meredith", "age": 12 },
268+
{ "name": "Olivia", "age": 11 },
269+
{ "name": "Benjamin" }
270+
] )
271271

272272
However, you cannot insert a document that has the same index key (value
273273
for ``name``, ``age``, and ``grade``) as another document in the

content/manual/upcoming/source/core/indexes/index-types/index-text/specify-language-text-index/create-text-index-multiple-languages.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ that include the ``language`` field:
4444

4545
.. code-block:: javascript
4646

47-
db.quotes.insertMany(
47+
db.quotes.insertMany( [
4848
{
4949
_id: 1,
5050
language: "portuguese",
@@ -86,7 +86,7 @@ that include the ``language`` field:
8686
quote: "Es este un puñal que veo delante de mí."
8787
}
8888
}
89-
)
89+
] )
9090

9191
Procedure
9292
---------

0 commit comments

Comments
 (0)