Skip to content

Commit 904bef5

Browse files
Docsp 17140 output not copyable (#116)
1 parent 7c10b15 commit 904bef5

31 files changed

+85
-5
lines changed

source/fundamentals/builders/sort.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ on the ``_id`` field:
9090
The output of the example above should look something like this:
9191

9292
.. code-block:: json
93+
:copyable: false
9394

9495
{"_id": 1, "letter": "c", "food": "coffee with milk"}
9596
{"_id": 2, "letter": "a", "food": "donuts and coffee"}
@@ -117,6 +118,7 @@ on the ``_id`` field:
117118
The above example should output something like this:
118119

119120
.. code-block:: json
121+
:copyable: false
120122

121123
{"_id": 6, "letter": "c", "food": "maple donut"}
122124
{"_id": 5, "letter": "a", "food": "milk and cookies"}
@@ -150,6 +152,7 @@ on the ``letter`` field, and in the event of a tie, ascending order on the
150152
The output of the example above should look something like this:
151153

152154
.. code-block:: json
155+
:copyable: false
153156

154157
{"_id": 1, "letter": "c", "food": "coffee with milk"}
155158
{"_id": 6, "letter": "c", "food": "maple donut"}

source/fundamentals/collations.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ If you do not need to specify a variant, omit everything after the locale
9696
code as follows:
9797

9898
.. code-block:: none
99+
:copyable: false
99100

100101
"de"
101102

@@ -407,6 +408,7 @@ Since "Günter" is lexically before "Gunter" using the
407408
returns the following update document:
408409

409410
.. code-block:: none
411+
:copyable: false
410412

411413
{
412414
lastErrorObject: { updatedExisting: true, n: 1 },
@@ -462,6 +464,7 @@ After you run the operation above, your output should resemble the
462464
following:
463465

464466
.. code-block:: none
467+
:copyable: false
465468

466469
Deleted document: {"_id": 3, "a": "179 bananas"}
467470

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ meters from the
233233
The output of the code snippet should look something like this:
234234

235235
.. code-block:: json
236+
:copyable: false
236237

237238
{"location": {"address": {"city": "Bronx"}}}
238239
{"location": {"address": {"city": "New York"}}}
@@ -283,6 +284,7 @@ described in the figure above.
283284
The output of the code snippet should look something like this:
284285

285286
.. code-block:: json
287+
:copyable: false
286288

287289
{"location": {"address": {"city": "Baldwin"}}}
288290
{"location": {"address": {"city": "Levittown"}}}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ The code example above prints out the following three documents, sorted by
8686
length:
8787

8888
.. code-block:: java
89+
:copyable: false
8990

9091
Document{{_id=2, title=Les Misérables, author=Hugo, length=1462}}
9192
Document{{_id=6, title=A Dance with Dragons, author=Martin, length=1104}}
@@ -122,6 +123,7 @@ This operation returns the documents that describe the fourth through sixth
122123
longest books:
123124

124125
.. code-block:: java
126+
:copyable: false
125127

126128
Document{{_id=3, title=Atlas Shrugged, author=Rand, length=1088}}
127129
Document{{_id=5, title=Cryptonomicon, author=Stephenson, length=918}}
@@ -140,6 +142,7 @@ collection, returning only small subsets of the collection at one time.
140142
For example, consider the following data:
141143

142144
.. code-block:: java
145+
:copyable: false
143146

144147
{ type: "computer", data: "1", serial_no: 235235 }
145148
{ type: "computer", data: "2", serial_no: 235237 }

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ this projection to ``find()`` with an empty query document yields the
7979
following results:
8080

8181
.. code-block:: json
82+
:copyable: false
8283

8384
{ "_id": 1, "name": "apples" }
8485
{ "_id": 2, "name": "bananas" }
@@ -117,6 +118,7 @@ excludes the ``qty`` and ``rating`` fields. Chaining this projection to
117118
``find()`` with an empty query document yields the following results:
118119

119120
.. code-block:: javascript
121+
:copyable: false
120122

121123
{ "name": "apples" }
122124
{ "name": "bananas" }
@@ -141,6 +143,7 @@ This example that identifies two fields to include in the projection yields
141143
the following results:
142144

143145
.. code-block:: json
146+
:copyable: false
144147

145148
{ "name": "apples", "rating": 3 }
146149
{ "name": "bananas", "rating": 1 }

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ For more information on how to build filters, see our :doc:`Filters Builders
7474
The following shows the output of the query specified above:
7575

7676
.. code-block:: json
77+
:copyable: false
7778

7879
{ "_id": 2, "color": "green", "qty": 8 }
7980
{ "_id": 3, "color": "purple", "qty": 4 }
@@ -122,6 +123,7 @@ To address the scenario, the owner creates an aggregation pipeline that:
122123
The following shows the output of the aggregation specified above:
123124

124125
.. code-block:: json
126+
:copyable: false
125127

126128
{ "_id": "green", "qty": 19 }
127129
{ "_id": "purple", "qty": 14 }
@@ -185,6 +187,7 @@ future inserts or updates to their collection.
185187
An insert notification looks similar to the following:
186188

187189
.. code-block::
190+
:copyable: false
188191

189192
Received a change to the collection: ChangeStreamDocument{
190193
operationType=OperationType{value='insert'},

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The code snippets above both sort the documents in the
8383
largest value of the ``_id`` field:
8484

8585
.. code-block:: json
86+
:copyable: false
8687

8788
{"_id": 1, "letter": "c", "food": "coffee with milk"}
8889
{"_id": 2, "letter": "a", "food": "donuts and coffee"}
@@ -167,6 +168,7 @@ by the ``_id`` field:
167168
The output of the code example above should look something like this:
168169

169170
.. code-block:: json
171+
:copyable: false
170172

171173
{"_id": 1, "letter": "c", "food": "coffee with milk"}
172174
{"_id": 2, "letter": "a", "food": "donuts and coffee"}
@@ -196,6 +198,7 @@ The code snippet above returns the documents in the
196198
in descending order:
197199

198200
.. code-block:: json
201+
:copyable: false
199202

200203
{"_id": 6, "letter": "c", "food": "maple donut"}
201204
{"_id": 5, "letter": "a", "food": "milk and cookies"}
@@ -226,6 +229,7 @@ field on which we perform the sort, the following documents could be returned
226229
in any order:
227230

228231
.. code-block:: json
232+
:copyable: false
229233

230234
{"_id": 3, "letter": "a", "food": "maple syrup"}
231235
{"_id": 5, "letter": "a", "food": "milk and cookies"}
@@ -251,6 +255,7 @@ The code snippet above returns the documents in the
251255
in the following order:
252256

253257
.. code-block:: json
258+
:copyable: false
254259

255260
{"_id": 2, "letter": "a", "food": "donuts and coffee"}
256261
{"_id": 3, "letter": "a", "food": "maple syrup"}
@@ -287,6 +292,7 @@ The code snippet above returns the documents in the
287292
in the following order:
288293

289294
.. code-block:: json
295+
:copyable: false
290296

291297
{"_id": 1, "letter": "c", "food": "coffee with milk"}
292298
{"_id": 6, "letter": "c", "food": "maple donut"}
@@ -358,6 +364,7 @@ The code example performs the following actions:
358364
The output of the code example above should look something like this:
359365

360366
.. code-block:: json
367+
:copyable: false
361368

362369
{"_id": 6, "letter": "c", "food": "maple donut", "score": 1.5}
363370
{"_id": 2, "letter": "a", "food": "donuts and coffee", "score": 0.75}

source/fundamentals/crud/write-operations/bulk.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ where the ``_id`` values are "3" and "4":
8686
The following shows the output of the code above:
8787

8888
.. code-block:: shell
89+
:copyable: false
8990

9091
A MongoBulkWriteException occurred with the following message:
9192
Bulk write operation error on server sample-shard-00-02.pw0q4.mongodb.net:27017.

source/fundamentals/crud/write-operations/change-a-document.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,15 @@ following:
9898
Your output should look something like this:
9999

100100
.. code-block:: none
101+
:copyable: false
101102

102103
Matched document count: 5
103104
Modified document count: 5
104105

105106
The following shows the updated documents in the ``paint_inventory`` collection:
106107

107108
.. code-block:: json
109+
:copyable: false
108110

109111
{ "_id": 1, "color": "red", "qty": 25 }
110112
{ "_id": 2, "color": "purple", "qty": 28 }
@@ -175,13 +177,15 @@ following:
175177
Your output should look something like this:
176178

177179
.. code-block:: none
180+
:copyable: false
178181

179182
Matched document count: 1
180183
Modified document count: 1
181184

182185
The following shows the updated document:
183186

184187
.. code-block:: json
188+
:copyable: false
185189

186190
{ "_id": 5, "color": "orange", "qty": 25 }
187191

source/fundamentals/crud/write-operations/delete.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ collection where the ``qty`` is ``0`` and pass the query to the
7474
The following shows the documents remaining in the ``paint_inventory``
7575
collection:
7676

77-
.. code-block:: json
77+
.. code-block:: json
78+
:copyable: false
7879

7980
{ "_id": 1, "color": "red", "qty": 5 }
8081
{ "_id": 2, "color": "purple", "qty": 8 }
@@ -101,7 +102,8 @@ method:
101102
The following shows the documents remaining in the ``paint_inventory``
102103
collection:
103104

104-
.. code-block:: json
105+
.. code-block:: json
106+
:copyable: false
105107

106108
{ "_id": 1, "color": "red", "qty": 5 }
107109
{ "_id": 2, "color": "purple", "qty": 8 }
@@ -126,7 +128,8 @@ method:
126128
Unlike the other delete methods, ``findOneAndDelete()`` returns the
127129
deleted document:
128130

129-
.. code-block:: json
131+
.. code-block:: json
132+
:copyable: false
130133

131134
{ "_id": 2, "color": "purple", "qty": 8 }
132135

@@ -138,7 +141,8 @@ deleted document:
138141
The following shows the documents remaining in the ``paint_inventory``
139142
collection:
140143

141-
.. code-block:: json
144+
.. code-block:: json
145+
:copyable: false
142146

143147
{ "_id": 1, "color": "red", "qty": 5 }
144148
{ "_id": 8, "color": "black", "qty": 8 }

0 commit comments

Comments
 (0)