Skip to content

Commit eab280f

Browse files
committed
NR feedback
1 parent 452ae97 commit eab280f

File tree

7 files changed

+48
-7
lines changed

7 files changed

+48
-7
lines changed

source/read.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ the relevant values for your MongoDB deployment.
5252
.. include:: /includes/usage-examples/sample-app-intro.rst
5353

5454
Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding
55-
code.
55+
code:
5656

5757
.. tabs::
5858

source/read/change-streams.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ classes:
4747

4848
The following example opens a change stream on the ``restaurants`` collection
4949
and outputs changes as they occur. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous`
50-
tab to see the corresponding code.
50+
tab to see the corresponding code:
5151

5252
.. tabs::
5353

source/read/cursors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ see the corresponding code:
8888
:language: python
8989

9090
.. output::
91+
:visible: false
9192

9293
{'_id': ObjectId('...'), 'address': { ... }, 'borough': 'Bronx', 'cuisine': 'Donuts', 'grades': [...], 'name': "Dunkin' Donuts", 'restaurant_id': '40379573'}
9394

@@ -103,6 +104,7 @@ see the corresponding code:
103104
:language: python
104105

105106
.. output::
107+
:visible: false
106108

107109
{'_id': ObjectId('...'), 'address': { ... }, 'borough': 'Bronx', 'cuisine': 'Donuts', 'grades': [...], 'name': "Dunkin' Donuts", 'restaurant_id': '40379573'}
108110

source/read/distinct.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ tab to see the corresponding code:
5959
:end-before: end-distinct
6060
:language: python
6161

62-
.. output::
62+
.. output::
63+
:visible: false
6364

6465
Bronx
6566
Brooklyn
@@ -78,7 +79,8 @@ tab to see the corresponding code:
7879
:end-before: end-distinct
7980
:language: python
8081

81-
.. output::
82+
.. output::
83+
:visible: false
8284

8385
Bronx
8486
Brooklyn
@@ -116,6 +118,7 @@ all documents that have a ``cuisine`` field value of ``"Italian"``. Select the
116118
:language: python
117119

118120
.. output::
121+
:visible: false
119122

120123
Bronx
121124
Brooklyn
@@ -134,6 +137,7 @@ all documents that have a ``cuisine`` field value of ``"Italian"``. Select the
134137
:language: python
135138

136139
.. output::
140+
:visible: false
137141

138142
Bronx
139143
Brooklyn
@@ -193,7 +197,8 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
193197
:end-before: end-distinct-with-comment
194198
:language: python
195199

196-
.. output::
200+
.. output::
201+
:visible: false
197202

198203
$1.25 Pizza
199204
18 East Gunhill Pizza
@@ -213,6 +218,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
213218
:language: python
214219

215220
.. output::
221+
:visible: false
216222

217223
$1.25 Pizza
218224
18 East Gunhill Pizza

source/read/project.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ corresponding code:
6868
:language: python
6969
:emphasize-lines: 1
7070

71-
.. output::
71+
.. output::
72+
:visible: false
7273

7374
{'_id': ObjectId('...'), 'borough': 'Manhattan', 'cuisine': 'American', 'name': 'Emerald Pub'}
7475
{'_id': ObjectId('...'), 'borough': 'Queens', 'cuisine': 'American', 'name': 'Emerald Pub'}
@@ -85,6 +86,7 @@ corresponding code:
8586
:emphasize-lines: 1
8687

8788
.. output::
89+
:visible: false
8890

8991
{'_id': ObjectId('...'), 'borough': 'Manhattan', 'cuisine': 'American', 'name': 'Emerald Pub'}
9092
{'_id': ObjectId('...'), 'borough': 'Queens', 'cuisine': 'American', 'name': 'Emerald Pub'}
@@ -119,7 +121,8 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
119121
:language: python
120122
:emphasize-lines: 1
121123

122-
.. output::
124+
.. output::
125+
:visible: false
123126

124127
{'borough': 'Manhattan', 'cuisine': 'American', 'name': 'Emerald Pub'}
125128
{'borough': 'Queens', 'cuisine': 'American', 'name': 'Emerald Pub'}
@@ -136,6 +139,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
136139
:emphasize-lines: 1
137140

138141
.. output::
142+
:visible: false
139143

140144
{'borough': 'Manhattan', 'cuisine': 'American', 'name': 'Emerald Pub'}
141145
{'borough': 'Queens', 'cuisine': 'American', 'name': 'Emerald Pub'}
@@ -168,6 +172,7 @@ exclude the ``grades`` and ``address`` fields from the returned documents. Selec
168172
:emphasize-lines: 1
169173

170174
.. output::
175+
:visible: false
171176

172177
{'_id': ObjectId('...'), 'borough': 'Manhattan', 'cuisine': 'American', 'name': 'Emerald Pub', 'restaurant_id': '40367329'}
173178
{'_id': ObjectId('...'), 'borough': 'Queens', 'cuisine': 'American',
@@ -185,6 +190,7 @@ exclude the ``grades`` and ``address`` fields from the returned documents. Selec
185190
:emphasize-lines: 1
186191

187192
.. output::
193+
:visible: false
188194

189195
{'_id': ObjectId('...'), 'borough': 'Manhattan', 'cuisine': 'American', 'name': 'Emerald Pub', 'restaurant_id': '40367329'}
190196
{'_id': ObjectId('...'), 'borough': 'Queens', 'cuisine': 'American',

source/read/specify-a-query.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ method. The code returns all documents with a ``color`` field value of ``"yellow
8383
:language: python
8484

8585
.. output::
86+
:visible: false
8687

8788
{'_id': 2, 'name': 'bananas', 'qty': 7, 'rating': 4, 'color': 'yellow', 'type': ['cavendish']}
8889
{'_id': 4, 'name': 'pineapple', 'qty': 3, 'rating': 5, 'color': 'yellow'}
@@ -130,6 +131,7 @@ parameter to the ``find()`` method. The code returns all documents with a
130131
:language: python
131132

132133
.. output::
134+
:visible: false
133135

134136
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
135137
{'_id': 2, 'name': 'bananas', 'qty': 7, 'rating': 4, 'color': 'yellow', 'type': ['cavendish']}
@@ -147,6 +149,7 @@ parameter to the ``find()`` method. The code returns all documents with a
147149
:language: python
148150

149151
.. output::
152+
:visible: false
150153

151154
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
152155
{'_id': 2, 'name': 'bananas', 'qty': 7, 'rating': 4, 'color': 'yellow', 'type': ['cavendish']}
@@ -186,6 +189,7 @@ to see the corresponding code:
186189
:language: python
187190

188191
.. output::
192+
:visible: false
189193

190194
{'_id': 2, 'name': 'bananas', 'qty': 7, 'rating': 4, 'color': 'yellow', 'type': ['cavendish']}
191195
{'_id': 3, 'name': 'oranges', 'qty': 6, 'rating': 2, 'type': ['naval', 'mandarin']}
@@ -203,6 +207,7 @@ to see the corresponding code:
203207
:language: python
204208

205209
.. output::
210+
:visible: false
206211

207212
{'_id': 2, 'name': 'bananas', 'qty': 7, 'rating': 4, 'color': 'yellow', 'type': ['cavendish']}
208213
{'_id': 3, 'name': 'oranges', 'qty': 6, 'rating': 2, 'type': ['naval', 'mandarin']}
@@ -240,6 +245,7 @@ parameter to the ``find()`` method. The code returns all documents with a
240245
:language: python
241246

242247
.. output::
248+
:visible: false
243249

244250
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
245251
{'_id': 3, 'name': 'oranges', 'qty': 6, 'rating': 2, 'type': ['naval', 'mandarin']}
@@ -256,6 +262,7 @@ parameter to the ``find()`` method. The code returns all documents with a
256262
:language: python
257263

258264
.. output::
265+
:visible: false
259266

260267
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
261268
{'_id': 3, 'name': 'oranges', 'qty': 6, 'rating': 2, 'type': ['naval', 'mandarin']}
@@ -287,6 +294,7 @@ to see the corresponding code:
287294
:language: python
288295

289296
.. output::
297+
:visible: false
290298

291299
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
292300
{'_id': 2, 'name': 'bananas', 'qty': 7, 'rating': 4, 'color': 'yellow', 'type': ['cavendish']}
@@ -304,6 +312,7 @@ to see the corresponding code:
304312
:language: python
305313

306314
.. output::
315+
:visible: false
307316

308317
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
309318
{'_id': 2, 'name': 'bananas', 'qty': 7, 'rating': 4, 'color': 'yellow', 'type': ['cavendish']}
@@ -345,6 +354,7 @@ to see the corresponding code:
345354
:language: python
346355

347356
.. output::
357+
:visible: false
348358

349359
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
350360
{'_id': 4, 'name': 'pineapple', 'qty': 3, 'rating': 5, 'color': 'yellow'}
@@ -361,6 +371,7 @@ to see the corresponding code:
361371
:language: python
362372

363373
.. output::
374+
:visible: false
364375

365376
{'_id': 1, 'name': 'apples', 'qty': 5, 'rating': 3, 'color': 'red', 'type': ['fuji', 'honeycrisp']}
366377
{'_id': 4, 'name': 'pineapple', 'qty': 3, 'rating': 5, 'color': 'yellow'}

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
5757
:language: python
5858

5959
.. output::
60+
:visible: false
6061

6162
Isle Of Capri Resturant Italian
6263
Arturo'S Italian
@@ -75,6 +76,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
7576
:language: python
7677

7778
.. output::
79+
:visible: false
7880

7981
Isle Of Capri Resturant Italian
8082
Arturo'S Italian
@@ -99,6 +101,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
99101
:language: python
100102

101103
.. output::
104+
:visible: false
102105

103106
Isle Of Capri Resturant Italian
104107
Arturo'S Italian
@@ -117,6 +120,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
117120
:language: python
118121

119122
.. output::
123+
:visible: false
120124

121125
Isle Of Capri Resturant Italian
122126
Arturo'S Italian
@@ -159,6 +163,7 @@ The following example returns all documents with the ``cuisine`` value of
159163
:language: python
160164

161165
.. output::
166+
:visible: false
162167

163168
(Lewis Drug Store) Locanda Vini E Olii
164169
101 Restaurant And Bar
@@ -179,6 +184,7 @@ The following example returns all documents with the ``cuisine`` value of
179184
:language: python
180185

181186
.. output::
187+
:visible: false
182188

183189
(Lewis Drug Store) Locanda Vini E Olii
184190
101 Restaurant And Bar
@@ -206,6 +212,7 @@ results in the same order as the preceding example. Select the :guilabel:`Synchr
206212
:language: python
207213

208214
.. output::
215+
:visible: false
209216

210217
(Lewis Drug Store) Locanda Vini E Olii
211218
101 Restaurant And Bar
@@ -226,6 +233,7 @@ results in the same order as the preceding example. Select the :guilabel:`Synchr
226233
:language: python
227234

228235
.. output::
236+
:visible: false
229237

230238
(Lewis Drug Store) Locanda Vini E Olii
231239
101 Restaurant And Bar
@@ -260,6 +268,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
260268
:language: python
261269

262270
.. output::
271+
:visible: false
263272

264273
Dorrian'S Red Hand Restaurant
265274
The Princeton Club
@@ -279,6 +288,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code:
279288
:language: python
280289

281290
.. output::
291+
:visible: false
282292

283293
Dorrian'S Red Hand Restaurant
284294
The Princeton Club
@@ -305,6 +315,7 @@ same skip as the preceding example. Select the :guilabel:`Synchronous` or
305315
:language: python
306316

307317
.. output::
318+
:visible: false
308319

309320
Dorrian'S Red Hand Restaurant
310321
The Princeton Club
@@ -324,6 +335,7 @@ same skip as the preceding example. Select the :guilabel:`Synchronous` or
324335
:language: python
325336

326337
.. output::
338+
:visible: false
327339

328340
Dorrian'S Red Hand Restaurant
329341
The Princeton Club
@@ -357,6 +369,7 @@ to see the corresponding code:
357369
:language: python
358370

359371
.. output::
372+
:visible: false
360373

361374
Acqua
362375
Acqua Restaurant
@@ -375,6 +388,7 @@ to see the corresponding code:
375388
:language: python
376389

377390
.. output::
391+
:visible: false
378392

379393
Acqua
380394
Acqua Restaurant
@@ -406,6 +420,7 @@ same query as the preceding example. Select the :guilabel:`Synchronous` or
406420
:language: python
407421

408422
.. output::
423+
:visible: false
409424

410425
Acqua
411426
Acqua Restaurant
@@ -424,6 +439,7 @@ same query as the preceding example. Select the :guilabel:`Synchronous` or
424439
:language: python
425440

426441
.. output::
442+
:visible: false
427443

428444
Acqua
429445
Acqua Restaurant

0 commit comments

Comments
 (0)