Skip to content

Commit 127f6dd

Browse files
committed
code ex format
1 parent a49e8f6 commit 127f6dd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

source/read/count.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ the ``countDocuments()`` method, as shown in the following example:
7070
:dedent:
7171

7272
.. output::
73+
:visible: false
7374

7475
Number of documents: 9500
7576

@@ -83,6 +84,7 @@ The following example counts the number of documents that have a ``founded_year`
8384
value of ``2010``:
8485

8586
.. io-code-block::
87+
:copyable:
8688

8789
.. input:: /includes/read/count.php
8890
:start-after: start-count-accurate
@@ -91,6 +93,7 @@ value of ``2010``:
9193
:dedent:
9294

9395
.. output::
96+
:visible: false
9497

9598
Number of companies founded in 2010: 33
9699

@@ -141,6 +144,7 @@ documents in which the ``number_of_employees`` field has the value ``50`` and in
141144
operation to count a maximum of ``100`` results:
142145

143146
.. io-code-block::
147+
:copyable:
144148

145149
.. input:: /includes/read/count.php
146150
:start-after: start-modify-accurate
@@ -149,6 +153,7 @@ operation to count a maximum of ``100`` results:
149153
:dedent:
150154

151155
.. output::
156+
:visible: false
152157

153158
Number of companies with 50 employees: 100
154159

@@ -165,6 +170,7 @@ accurate count.
165170
The following example estimates the number of documents in a collection:
166171

167172
.. io-code-block::
173+
:copyable:
168174

169175
.. input:: /includes/read/count.php
170176
:start-after: start-count-estimate
@@ -173,6 +179,7 @@ The following example estimates the number of documents in a collection:
173179
:dedent:
174180

175181
.. output::
182+
:visible: false
176183

177184
Estimated number of documents: 9500
178185

@@ -217,6 +224,7 @@ estimate of the number of documents in the collection and instructs the operatio
217224
to run for a maximum of ``1000`` milliseconds:
218225

219226
.. io-code-block::
227+
:copyable:
220228

221229
.. input:: /includes/read/count.php
222230
:start-after: start-modify-estimate
@@ -225,7 +233,8 @@ to run for a maximum of ``1000`` milliseconds:
225233
:dedent:
226234

227235
.. output::
228-
236+
:visible: false
237+
229238
Estimated number of documents: 9500
230239

231240
API Documentation

0 commit comments

Comments
 (0)