@@ -70,6 +70,7 @@ the ``countDocuments()`` method, as shown in the following example:
70
70
:dedent:
71
71
72
72
.. output::
73
+ :visible: false
73
74
74
75
Number of documents: 9500
75
76
@@ -83,6 +84,7 @@ The following example counts the number of documents that have a ``founded_year`
83
84
value of ``2010``:
84
85
85
86
.. io-code-block::
87
+ :copyable:
86
88
87
89
.. input:: /includes/read/count.php
88
90
:start-after: start-count-accurate
@@ -91,6 +93,7 @@ value of ``2010``:
91
93
:dedent:
92
94
93
95
.. output::
96
+ :visible: false
94
97
95
98
Number of companies founded in 2010: 33
96
99
@@ -141,6 +144,7 @@ documents in which the ``number_of_employees`` field has the value ``50`` and in
141
144
operation to count a maximum of ``100`` results:
142
145
143
146
.. io-code-block::
147
+ :copyable:
144
148
145
149
.. input:: /includes/read/count.php
146
150
:start-after: start-modify-accurate
@@ -149,6 +153,7 @@ operation to count a maximum of ``100`` results:
149
153
:dedent:
150
154
151
155
.. output::
156
+ :visible: false
152
157
153
158
Number of companies with 50 employees: 100
154
159
@@ -165,6 +170,7 @@ accurate count.
165
170
The following example estimates the number of documents in a collection:
166
171
167
172
.. io-code-block::
173
+ :copyable:
168
174
169
175
.. input:: /includes/read/count.php
170
176
:start-after: start-count-estimate
@@ -173,6 +179,7 @@ The following example estimates the number of documents in a collection:
173
179
:dedent:
174
180
175
181
.. output::
182
+ :visible: false
176
183
177
184
Estimated number of documents: 9500
178
185
@@ -217,6 +224,7 @@ estimate of the number of documents in the collection and instructs the operatio
217
224
to run for a maximum of ``1000`` milliseconds:
218
225
219
226
.. io-code-block::
227
+ :copyable:
220
228
221
229
.. input:: /includes/read/count.php
222
230
:start-after: start-modify-estimate
@@ -225,7 +233,8 @@ to run for a maximum of ``1000`` milliseconds:
225
233
:dedent:
226
234
227
235
.. output::
228
-
236
+ :visible: false
237
+
229
238
Estimated number of documents: 9500
230
239
231
240
API Documentation
0 commit comments