Skip to content

Commit c673412

Browse files
committed
tweak insert documents and array documents in examples
1 parent ce8e2e5 commit c673412

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/tutorial/insert-documents.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ See :ref:`write-op-insert-behavior`.
171171
.. code-block:: javascript
172172

173173
db.inventory.insert([
174-
{ item: "paper", qty: 100, tags: ["bond", "multipurpose", "white"], size: { h: 8.5, w: 11, uom: "in" } },
175-
{ item: "planner", qty: 75, tags: ["blank", "red", "daily"], size: { h: 22.85, w: 30, uom: "cm" } },
174+
{ item: "paper", qty: 100, tags: ["red", "blank", "plain"], size: { h: 11.69 , w: 16.53, uom: "in" } },
175+
{ item: "planner", qty: 75, tags: ["blank", "red"], size: { h: 22.85, w: 30, uom: "cm" } },
176176
{ item: "postcard", qty: 45, tags: ["blue"], size: { h: 10, w: 15.25, uom: "cm" } }
177177
])
178178

source/tutorial/query-arrays.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ populate the ``inventory`` collection, run the following in the
2626
{ item: "mat", qty: 85, tags: ["gray"], dim_cm: [ 27.9, 35.5 ] },
2727
{ item: "mousepad", qty: 25, tags: ["gel", "blue"], dim_cm: [ 19, 22.85 ] },
2828
{ item: "notebook", qty: 50, tags: ["red", "blank"], dim_cm: [ 14, 21 ] },
29-
{ item: "paper", qty: 100, tags: ["red", "blank", "A3"], dim_cm: [ 14, 21 ] },
30-
{ item: "planner", qty: 75, tags: [ "blank", "red"], dim_cm: [ 22.85, 30 ] },
29+
{ item: "paper", qty: 100, tags: ["red", "blank", "plain"], dim_cm: [ 14, 21 ] },
30+
{ item: "planner", qty: 75, tags: ["blank", "red"], dim_cm: [ 22.85, 30 ] },
3131
{ item: "postcard", qty: 45, tags: ["blue"], dim_cm: [ 10, 15.25 ] },
3232
{ item: "sketchbook", qty: 80, tags: ["heavy weight", "acid-free"], dim_cm: [ 14, 21 ] },
3333
{ item: "sketch pad", qty: 95, tags: ["acid-free", "heavy weight"], dim_cm: [ 22.85, 30.5 ] }

0 commit comments

Comments
 (0)