Skip to content

Commit 1f295e0

Browse files
committed
code output
1 parent 6c392fc commit 1f295e0

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

source/read/specify-documents-to-return.txt

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,16 @@ of ``'Italian'`` and limits the results to ``5`` documents:
7272
.. output::
7373
:visible: false
7474

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"}
8085

8186
.. tip::
8287

@@ -113,11 +118,13 @@ of ``'Italian'``, sorted in ascending order of ``name`` field values:
113118
.. output::
114119
:visible: false
115120

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"}
119125
...
120-
{"_id": {"$oid": "..."}, ... , "name": "Zucchero E Pomodori", "restaurant_id": "41189590"}
126+
{"_id"=>BSON::ObjectId('...'), ", "name"=>"Zucchero E Pomodori",
127+
"restaurant_id"=>"41189590"}
121128

122129
.. _ruby-return-documents-skip:
123130

@@ -143,9 +150,9 @@ of ``'Manhattan'`` and skips the first ``10`` documents:
143150
.. output::
144151
:visible: false
145152

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"}
149156
...
150157

151158
.. _ruby-return-documents-combine:
@@ -174,11 +181,13 @@ skipping the first ``10`` documents:
174181
.. output::
175182
:visible: false
176183

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"}
182191

183192
.. note::
184193

0 commit comments

Comments
 (0)