Skip to content

Commit a2777d6

Browse files
updated all output blocks (#109)
1 parent 4932343 commit a2777d6

20 files changed

+69
-4
lines changed

source/fundamentals/aggregation.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ the ``$sum`` expression operator.
144144
}
145145

146146
.. output::
147-
:language: go
147+
:language: none
148+
:visible: false
148149

149150
Average price of black tea: $6.075
150151
Amount of black tea: 4
@@ -197,7 +198,8 @@ The aggregation pipleline contains the following stages:
197198
}
198199

199200
.. output::
200-
:language: go
201+
:language: none
202+
:visible: false
201203

202204
Tea: Hojicha
203205
Toppings: [lemon ginger milk foam]

source/fundamentals/bson.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ operation:
254254

255255
.. output::
256256
:language: none
257+
:visible: false
257258

258259
[{_id ObjectID("...")} {first_name Arthur} {street 1 Fern Way} {city Elwood City} {state PA} {age 8}]
259260

@@ -288,6 +289,7 @@ user-defined struct by using methods from the ``bson`` package:
288289

289290
.. output::
290291
:language: none
292+
:visible: false
291293

292294
Unmarshalled Struct:
293295
{Category:plate Quantity:6}

source/fundamentals/crud/compound-operations.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ is "Assam" with the ``FindOneAndDelete()`` method:
125125

126126
.. output::
127127
:language: none
128+
:visible: false
128129

129130
[{_id ObjectID("...")} {type Assam} {rating 5}]
130131

@@ -229,6 +230,7 @@ The following example performs the following actions in order with the
229230

230231
.. output::
231232
:language: none
233+
:visible: false
232234

233235
[{_id ObjectID("...")} {type Oolong} {rating 9}]
234236

@@ -327,6 +329,7 @@ The following example performs the following actions in order with the
327329

328330
.. output::
329331
:language: none
332+
:visible: false
330333

331334
[{_id ObjectID("...")} {type English Breakfast} {rating 5}]
332335

source/fundamentals/crud/read-operations/count.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ The following example counts the number of documents where the
108108

109109
.. output::
110110
:language: none
111+
:visible: false
111112

112113
Number of ratings less than six: 4
113114

@@ -151,6 +152,7 @@ The following example performs the following actions:
151152

152153
.. output::
153154
:language: none
155+
:visible: false
154156

155157
[{total_documents 5}]
156158

@@ -209,6 +211,7 @@ The following example estimates the number of documents in the
209211

210212
.. output::
211213
:language: none
214+
:visible: false
212215

213216
Estimated number of documents in the ratings collection: 9
214217

source/fundamentals/crud/read-operations/distinct.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ of the ``type`` field using the ``Distinct()`` method:
100100

101101
.. output::
102102
:language: none
103+
:visible: false
103104

104105
Earl Grey
105106
Masala

source/fundamentals/crud/read-operations/limit.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ The following example shows how to return two documents:
7979

8080
.. output::
8181
:language: none
82+
:visible: false
8283

8384
[{_id ObjectID("...")} {type Masala} {rating 10}]
8485
[{_id ObjectID("...")} {type Assam} {rating 5}]
@@ -121,6 +122,7 @@ The following example performs the following actions in order using the
121122

122123
.. output::
123124
:language: none
125+
:visible: false
124126

125127
[{_id ObjectID("...")} {type Earl Grey} {rating 8}]
126128
[{_id ObjectID("...")} {type Oolong} {rating 7}]
@@ -174,6 +176,7 @@ The following example shows how to return three documents:
174176

175177
.. output::
176178
:language: none
179+
:visible: false
177180

178181
[{_id ObjectID("...")} {type Masala} {rating 10}]
179182
[{_id ObjectID("...")} {type Assam} {rating 5}]

source/fundamentals/crud/read-operations/project.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ from the ``Find()`` method:
9090

9191
.. output::
9292
:language: none
93+
:visible: false
9394

9495
//results truncated
9596
[{_id ObjectID("...")} {type Masala}]
@@ -146,6 +147,7 @@ documents from the ``Find()`` method:
146147

147148
.. output::
148149
:language: none
150+
:visible: false
149151

150152
[{type Masala} {rating 10}]
151153
[{type Assam} {rating 5}]
@@ -191,6 +193,7 @@ documents from the ``Aggregate()`` method:
191193

192194
.. output::
193195
:language: none
196+
:visible: false
194197

195198
[{type Masala} {rating 10}]
196199
[{type Assam} {rating 5}]

source/fundamentals/crud/read-operations/query-document.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ The following example matches documents where the ``type`` is "Oolong":
111111

112112
.. output::
113113
:language: none
114+
:visible: false
114115

115116
[{_id ObjectID("...")} {type Oolong} {rating 7} {vendor [C]}]
116117

@@ -167,6 +168,7 @@ than ``7``:
167168

168169
.. output::
169170
:language: none
171+
:visible: false
170172

171173
[{_id ObjectID("...")} {type English Breakfast} {rating 6}]
172174
[{_id ObjectID("...")} {type Assam} {rating 5}]
@@ -219,6 +221,7 @@ than ``7`` and less than or equal to ``10``:
219221

220222
.. output::
221223
:language: none
224+
:visible: false
222225

223226
[{_id ObjectID("...")} {type Masala} {rating 10} {vendor [A C]}]
224227
[{_id ObjectID("...")} {type Earl Grey} {rating 8} {vendor [A B]}]
@@ -280,6 +283,7 @@ not exist:
280283

281284
.. output::
282285
:language: none
286+
:visible: false
283287

284288
[{_id ObjectID("...")} {type English Breakfast} {rating 6}]
285289
[{_id ObjectID("...")} {type Assam} {rating 5}]
@@ -325,6 +329,7 @@ the letter "E":
325329

326330
.. output::
327331
:language: none
332+
:visible: false
328333

329334
[{_id ObjectID("...")} {type English Breakfast} {rating 6}]
330335
[{_id ObjectID("...")} {type Earl Grey} {rating 8} {vendor [A B]}]
@@ -365,6 +370,7 @@ The following example matches documents where the ``vendor`` contains "C":
365370

366371
.. output::
367372
:language: none
373+
:visible: false
368374

369375
[{_id ObjectID("...")} {type Masala} {rating 10} {vendor [A C]}]
370376
[{_id ObjectID("...")} {type Oolong} {rating 7} {vendor [C]}]
@@ -409,6 +415,7 @@ bits set as ``6`` (which is "00000110"):
409415

410416
.. output::
411417
:language: none
418+
:visible: false
412419

413420
[{_id ObjectID("...")} {type English Breakfast} {rating 6}]
414421
[{_id ObjectID("...")} {type Oolong} {rating 7} {vendor [C]}]

source/fundamentals/crud/read-operations/retrieve.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ the ``Find()`` method, which performs the following actions:
149149

150150
.. output::
151151
:language: none
152+
:visible: false
152153

153154
[{type Masala} {rating 7}]
154155
[{type Earl Grey} {rating 9}]
@@ -184,6 +185,7 @@ to the ``FindOne()`` method, which performs the following actions:
184185

185186
.. output::
186187
:language: none
188+
:visible: false
187189

188190
[{type Masala} {rating 10}]
189191

@@ -302,6 +304,7 @@ performs the following actions:
302304

303305
.. output::
304306
:language: none
307+
:visible: false
305308

306309
Masala has an average rating of 8.5
307310
Earl Grey has an average rating of 7

source/fundamentals/crud/read-operations/skip.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ The following example performs the following actions in order with the
9090

9191
.. output::
9292
:language: none
93+
:visible: false
9394

9495
[{_id ObjectID("...")} {type Oolong} {rating 7}]
9596
[{_id ObjectID("...")} {type Earl Grey} {rating 8}]
@@ -136,6 +137,7 @@ The following example performs the following actions in order with the
136137

137138
.. output::
138139
:language: none
140+
:visible: false
139141

140142
[{_id ObjectID("...")} {type Assam} {rating 5}]
141143
[{_id ObjectID("...")} {type English Breakfast} {rating 5}]

0 commit comments

Comments
 (0)