@@ -72,11 +72,16 @@ of ``'Italian'`` and limits the results to ``5`` documents:
72
72
.. output::
73
73
:visible: false
74
74
75
- {"_id": {"$oid": "..."}, ... , "name": "Isle Of Capri Resturant", "restaurant_id": "40364373"}
76
- {"_id": {"$oid": "..."}, ... , "name": "Marchis Restaurant", "restaurant_id": "40364668"}
77
- {"_id": {"$oid": "..."}, ... , "name": "Crystal Room", "restaurant_id": "40365013"}
78
- {"_id": {"$oid": "..."}, ... , "name": "Forlinis Restaurant", "restaurant_id": "40365098"}
79
- {"_id": {"$oid": "..."}, ... , "name": "Angelo Of Mulberry St.", "restaurant_id": "40365293"}
75
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Philadelhia Grille Express",
76
+ "restaurant_id"=>"40364305"}
77
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Isle Of Capri Restaurant",
78
+ "restaurant_id"=>"40364373"}
79
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Marchis Restaurant",
80
+ "restaurant_id"=>"40364668"}
81
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Crystal Room",
82
+ "restaurant_id"=>"40365013"}
83
+ {"_id"=>BSON::ObjectId('...'), ... , name"=>"Forlinis Restaurant",
84
+ "restaurant_id"=>"40365098"}
80
85
81
86
.. tip::
82
87
@@ -113,11 +118,13 @@ of ``'Italian'``, sorted in ascending order of ``name`` field values:
113
118
.. output::
114
119
:visible: false
115
120
116
- {"_id": {"$oid": "..."}, ... , "name": "44 Sw Ristorante & Bar", "restaurant_id": "40698807"}
117
- {"_id": {"$oid": "..."}, ... , "name": "900 Park", "restaurant_id": "41707964"}
118
- {"_id": {"$oid": "..."}, ... , "name": "A Voce", "restaurant_id": "41434084"}
121
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"(Lewis Drug Store) Locanda Vini E Olii",
122
+ "restaurant_id"=>"40804423"}
123
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"101 Restaurant And Bar",
124
+ "restaurant_id"=>"40560108"}
119
125
...
120
- {"_id": {"$oid": "..."}, ... , "name": "Zucchero E Pomodori", "restaurant_id": "41189590"}
126
+ {"_id"=>BSON::ObjectId('...'), ", "name"=>"Zucchero E Pomodori",
127
+ "restaurant_id"=>"41189590"}
121
128
122
129
.. _ruby-return-documents-skip:
123
130
@@ -143,9 +150,9 @@ of ``'Manhattan'`` and skips the first ``10`` documents:
143
150
.. output::
144
151
:visible: false
145
152
146
- {"_id": {"$oid": " ..."}, ... , "name": "Cafe Metro", "restaurant_id": "40363298"}
147
- {"_id": {"$oid": " ..."}, ... , "name": "Lexler Deli", "restaurant_id": "40363426"}
148
- {"_id": {"$oid": " ..."}, ... , "name": "Domino'S Pizza", "restaurant_id": "40363644"}
153
+ {"_id"=>BSON::ObjectId(' ...'), , "name"=> "Cafe Metro", "restaurant_id"=> "40363298"}
154
+ {"_id"=>BSON::ObjectId(' ...'), , "name"=> "Lexler Deli", "restaurant_id"=> "40363426"}
155
+ {"_id"=>BSON::ObjectId(' ...'), , "name"=> "Domino'S Pizza", "restaurant_id"=> "40363644"}
149
156
...
150
157
151
158
.. _ruby-return-documents-combine:
@@ -174,11 +181,13 @@ skipping the first ``10`` documents:
174
181
.. output::
175
182
:visible: false
176
183
177
- {"_id": {"$oid": "..."}, ... , "name": "Acqua", "restaurant_id": "40871070"}
178
- {"_id": {"$oid": "..."}, ... , "name": "Acqua Restaurant", "restaurant_id": "41591488"}
179
- {"_id": {"$oid": "..."}, ... , "name": "Acqua Santa", "restaurant_id": "40735858"}
180
- {"_id": {"$oid": "..."}, ... , "name": "Acquista Trattoria", "restaurant_id": "40813992"}
181
- {"_id": {"$oid": "..."}, ... , "name": "Acquolina Catering", "restaurant_id": "41381423"}
184
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Acqua", "restaurant_id"=>"40871070"}
185
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Acqua Restaurant",
186
+ "restaurant_id"=>"41591488"}
187
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Acqua Santa", "restaurant_id"=>"40735858"}
188
+ {"_id"=>BSON::ObjectId('...'), ... , "name"=>"Acquista Trattoria",
189
+ "restaurant_id"=>"40813992"}
190
+ {"_id"=>BSON::ObjectId('...'), , "name"=>"Acquolina Catering", "restaurant_id"=>"41381423"}
182
191
183
192
.. note::
184
193
0 commit comments