Skip to content

Commit 303bc94

Browse files
DOCSP-1389 - Updates per Ravind's feedback
1 parent ac4c33a commit 303bc94

20 files changed

+146
-20
lines changed
48.9 KB
Loading
Loading
Loading
42.9 KB
Loading
Loading
Loading
33.4 KB
Loading

source/includes/driver-example-query-42.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@
2020

2121
.. include:: /includes/fact-mws.rst
2222

23+
- id: compass
24+
content: |
25+
.. code-block:: javascript
26+
27+
[
28+
{ item: "journal", status: "A", size: { h: 14, w: 21, uom: "cm" }, instock: [ { warehouse: "A", qty: 5 } ] },
29+
{ item: "notebook", status: "A", size: { h: 8.5, w: 11, uom: "in" }, instock: [ { warehouse: "C", qty: 5 } ] },
30+
{ item: "paper", status: "D", size: { h: 8.5, w: 11, uom: "in" }, instock: [ { warehouse: "A", qty: 60 } ] },
31+
{ item: "planner", status: "D", size: { h: 22.85, w: 30, uom: "cm" }, instock: [ { warehouse: "A", qty: 40 } ] },
32+
{ item: "postcard", status: "A", size: { h: 10, w: 15.25, uom: "cm" }, instock: [ { warehouse: "B", qty: 15 }, { warehouse: "C", qty: 35 } ] }
33+
]
34+
35+
For instructions on inserting documents in MongoDB Compass,
36+
see :doc:`Insert Documents </tutorial/insert-documents>`.
37+
38+
2339
- id: python
2440
content: |
2541
.. class:: copyable-code

source/includes/driver-example-query-43.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
99
db.inventory.find( { status: "A" } )
1010
11+
- id: compass
12+
content: |
13+
.. figure:: /images/compass-project-all-fields.png
14+
1115
- id: python
1216
content: |
1317
.. class:: copyable-code

source/includes/driver-example-query-44.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
99
db.inventory.find( { status: "A" }, { item: 1, status: 1 } )
1010
11+
- id: compass
12+
content: |
13+
.. figure:: /images/compass-project-specified-plus-id.png
14+
1115
- id: python
1216
content: |
1317
.. class:: copyable-code

0 commit comments

Comments
 (0)