Skip to content

Commit 1445f0c

Browse files
committed
output
1 parent a262c74 commit 1445f0c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/read/specify-a-query.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ is ``'yellow'``:
6565
.. output::
6666
:visible: false
6767

68-
{ "_id" : 2, "name" : "bananas", "qty" : 7, "rating" : 4, "color" : "yellow", "type" : [ "cavendish" ] }
69-
{ "_id" : 4, "name" : "pineapple", "qty" : 3, "rating" : 5, "color" : "yellow" }
68+
{"_id":2,"name":"bananas","qty":7,"rating":4,"color":"yellow","type":["cavendish"]}
69+
{"_id":4,"name":"pineapples","qty":3,"rating":5,"color":"yellow"}
7070

7171
.. tip:: Find All Documents
7272

@@ -110,9 +110,9 @@ that have a ``rating`` field value greater than ``2``:
110110
.. output::
111111
:visible: false
112112

113-
{ "_id" : 1, "name" : "apples", "qty" : 5, "rating" : 3, "color" : "red", "type" : [ "fuji", "honeycrisp" ] }
114-
{ "_id" : 2, "name" : "bananas", "qty" : 7, "rating" : 4, "color" : "yellow", "type" : [ "cavendish" ] }
115-
{ "_id" : 4, "name" : "pineapples", "qty" : 3, "rating" : 5, "color" : "yellow" }
113+
{"_id":1,"name":"apples","qty":5,"rating":3,"color":"red","type":["fuji","honeycrisp"]}
114+
{"_id":2,"name":"bananas","qty":7,"rating":4,"color":"yellow","type":["cavendish"]}
115+
{"_id":4,"name":"pineapples","qty":3,"rating":5,"color":"yellow"}
116116

117117
Logical Operators
118118
-----------------
@@ -145,9 +145,9 @@ value is ``'yellow'``:
145145
.. output::
146146
:visible: false
147147

148-
{ "_id" : 2, "name" : "bananas", "qty" : 7, "rating" : 4, "color" : "yellow", "type" : [ "cavendish" ] }
149-
{ "_id" : 3, "name" : "oranges", "qty" : 6, "rating" : 2, "type" : [ "naval", "mandarin" ] }
150-
{ "_id" : 4, "name" : "pineapples", "qty" : 3, "rating" : 5, "color" : "yellow" }
148+
{"_id":2,"name":"bananas","qty":7,"rating":4,"color":"yellow","type":["cavendish"]}
149+
{"_id":3,"name":"oranges","qty":6,"rating":2,"type":["naval","mandarin"]}
150+
{"_id":4,"name":"pineapples","qty":3,"rating":5,"color":"yellow"}
151151

152152
Array Operators
153153
---------------
@@ -178,8 +178,8 @@ documents in which the ``type`` array field contains ``2`` elements:
178178
.. output::
179179
:visible: false
180180

181-
{ "_id" : 1, "name" : "apples", "qty" : 5, "rating" : 3, "color" : "red", "type" : [ "fuji", "honeycrisp" ] }
182-
{ "_id" : 3, "name" : "oranges", "qty" : 6, "rating" : 2, "type" : [ "naval", "mandarin" ] }
181+
{"_id":1,"name":"apples","qty":5,"rating":3,"color":"red","type":["fuji","honeycrisp"]}
182+
{"_id":3,"name":"oranges","qty":6,"rating":2,"type":["naval","mandarin"]}
183183

184184
Element Operators
185185
-----------------
@@ -205,9 +205,9 @@ documents that have a ``color`` field:
205205
.. output::
206206
:visible: false
207207

208-
{ "_id" : 1, "name" : "apples", "qty" : 5, "rating" : 3, "color" : "red", "type" : [ "fuji", "honeycrisp" ] }
209-
{ "_id" : 2, "name" : "bananas", "qty" : 7, "rating" : 4, "color" : "yellow", "type" : [ "cavendish" ] }
210-
{ "_id" : 4, "name" : "pineapples", "qty" : 3, "rating" : 5, "color" : "yellow" }
208+
{"_id":1,"name":"apples","qty":5,"rating":3,"color":"red","type":["fuji","honeycrisp"]}
209+
{"_id":2,"name":"bananas","qty":7,"rating":4,"color":"yellow","type":["cavendish"]}
210+
{"_id":4,"name":"pineapples","qty":3,"rating":5,"color":"yellow"}
211211

212212
Evaluation Operators
213213
--------------------
@@ -242,8 +242,8 @@ two consecutive ``'p'`` characters:
242242
.. output::
243243
:visible: false
244244

245-
{ "_id" : 1, "name" : "apples", "qty" : 5, "rating" : 3, "color" : "red", "type" : [ "fuji", "honeycrisp" ] }
246-
{ "_id" : 4, "name" : "pineapples", "qty" : 3, "rating" : 5, "color" : "yellow" }
245+
{"_id":1,"name":"apples","qty":5,"rating":3,"color":"red","type":["fuji","honeycrisp"]}
246+
{"_id":4,"name":"pineapples","qty":3,"rating":5,"color":"yellow"}
247247

248248
Additional Information
249249
----------------------

0 commit comments

Comments
 (0)