Skip to content

Commit 7d87063

Browse files
authored
DOCSP-50596-insertMany-method-incorrect-format (#12354) (#12364)
* DOCSP-50596-insertMany-method-incorrect-format * Removing extra comma from last document in array.
1 parent c40b99a commit 7d87063

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

content/manual/manual/source/core/indexes/index-types/index-multikey.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ documents:
233233
.. code-block:: javascript
234234

235235
db.inventory.insertMany( [
236-
{ _id: 5, type: "food", item: "apple", ratings: [ 5, 8, 9 ] }
237-
{ _id: 6, type: "food", item: "banana", ratings: [ 5, 9 ] }
238-
{ _id: 7, type: "food", item: "chocolate", ratings: [ 9, 5, 8 ] }
239-
{ _id: 8, type: "food", item: "fish", ratings: [ 9, 5 ] }
236+
{ _id: 5, type: "food", item: "apple", ratings: [ 5, 8, 9 ] },
237+
{ _id: 6, type: "food", item: "banana", ratings: [ 5, 9 ] },
238+
{ _id: 7, type: "food", item: "chocolate", ratings: [ 9, 5, 8 ] },
239+
{ _id: 8, type: "food", item: "fish", ratings: [ 9, 5 ] },
240240
{ _id: 9, type: "food", item: "grapes", ratings: [ 5, 9, 5 ] }
241241
] )
242242

content/manual/v7.0/source/core/indexes/index-types/index-multikey.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ documents:
226226
.. code-block:: javascript
227227

228228
db.inventory.insertMany( [
229-
{ _id: 5, type: "food", item: "apple", ratings: [ 5, 8, 9 ] }
230-
{ _id: 6, type: "food", item: "banana", ratings: [ 5, 9 ] }
231-
{ _id: 7, type: "food", item: "chocolate", ratings: [ 9, 5, 8 ] }
232-
{ _id: 8, type: "food", item: "fish", ratings: [ 9, 5 ] }
229+
{ _id: 5, type: "food", item: "apple", ratings: [ 5, 8, 9 ] },
230+
{ _id: 6, type: "food", item: "banana", ratings: [ 5, 9 ] },
231+
{ _id: 7, type: "food", item: "chocolate", ratings: [ 9, 5, 8 ] },
232+
{ _id: 8, type: "food", item: "fish", ratings: [ 9, 5 ] },
233233
{ _id: 9, type: "food", item: "grapes", ratings: [ 5, 9, 5 ] }
234234
] )
235235

0 commit comments

Comments
 (0)