@@ -81,8 +81,8 @@ value is ``'Emerald Pub'``, passing the options array as a parameter to ``find()
81
81
.. output::
82
82
:visible: false
83
83
84
- { "_id" : { "$oid" : "..." }, "borough" : "Manhattan", "cuisine" : "American", "name" : "Emerald Pub" }
85
- { "_id" : { "$oid" : "..." }, "borough" : "Queens", "cuisine" : "American", "name" : "Emerald Pub" }
84
+ {"_id":{ "$oid": "..."}, "borough": "Manhattan","cuisine": "American","name": "Emerald Pub"}
85
+ {"_id":{ "$oid": "..."}, "borough": "Queens","cuisine": "American","name": "Emerald Pub"}
86
86
87
87
When you use a projection to specify fields to include in the return
88
88
document, the ``_id`` field is also included by default. All other fields are
@@ -112,8 +112,8 @@ excludes the ``_id`` field from the projection:
112
112
.. output::
113
113
:visible: false
114
114
115
- { "borough" : "Manhattan", "cuisine" : "American", "name" : "Emerald Pub" }
116
- { "borough" : "Queens", "cuisine" : "American", "name" : "Emerald Pub" }
115
+ { "borough": "Manhattan","cuisine": "American","name": "Emerald Pub"}
116
+ { "borough": "Queens","cuisine": "American","name": "Emerald Pub"}
117
117
118
118
Specify Fields to Exclude
119
119
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -148,8 +148,10 @@ field value is ``'Emerald Pub'``, passing the options array as a parameter to
148
148
.. output::
149
149
:visible: false
150
150
151
- { "_id" : { "$oid" : "..." }, "borough" : "Manhattan", "cuisine" : "American", "name" : "Emerald Pub", "restaurant_id" : "40367329" }
152
- { "_id" : { "$oid" : "..." }, "borough" : "Queens", "cuisine" : "American", "name" : "Emerald Pub", "restaurant_id" : "40668598" }
151
+ {"_id":{"$oid":"..."},"borough":"Manhattan","cuisine":"American",
152
+ "name":"Emerald Pub","restaurant_id":"40367329"}
153
+ {"_id":{"$oid":"..."},"borough":"Queens","cuisine":"American",
154
+ "name":"Emerald Pub","restaurant_id":"40668598"}
153
155
154
156
When you use a projection to specify which fields to exclude,
155
157
any unspecified fields are implicitly included in the return document.
0 commit comments