@@ -65,8 +65,8 @@ is ``'yellow'``:
65
65
.. output::
66
66
:visible: false
67
67
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"}
70
70
71
71
.. tip:: Find All Documents
72
72
@@ -110,9 +110,9 @@ that have a ``rating`` field value greater than ``2``:
110
110
.. output::
111
111
:visible: false
112
112
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"}
116
116
117
117
Logical Operators
118
118
-----------------
@@ -145,9 +145,9 @@ value is ``'yellow'``:
145
145
.. output::
146
146
:visible: false
147
147
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"}
151
151
152
152
Array Operators
153
153
---------------
@@ -178,8 +178,8 @@ documents in which the ``type`` array field contains ``2`` elements:
178
178
.. output::
179
179
:visible: false
180
180
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"] }
183
183
184
184
Element Operators
185
185
-----------------
@@ -205,9 +205,9 @@ documents that have a ``color`` field:
205
205
.. output::
206
206
:visible: false
207
207
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"}
211
211
212
212
Evaluation Operators
213
213
--------------------
@@ -242,8 +242,8 @@ two consecutive ``'p'`` characters:
242
242
.. output::
243
243
:visible: false
244
244
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"}
247
247
248
248
Additional Information
249
249
----------------------
0 commit comments