File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ database from the :atlas:`Atlas sample datasets </sample-data>`. To access this
38
38
from your PHP application, instantiate a ``MongoDB\Client`` that connects to an Atlas cluster
39
39
and assign the following values to your ``db`` and ``collection`` variables:
40
40
41
- .. literalinclude:: /includes/read/project .php
41
+ .. literalinclude:: /includes/read/limit-skip-sort .php
42
42
:language: php
43
43
:dedent:
44
44
:start-after: start-db-coll
54
54
55
55
To specify the maximum number of documents returned from a read operation, create
56
56
an array that sets the ``limit`` option and pass the array as a parameter to the
57
- ``MongoDB\Collection::find()`` or ``MongoDB\Collection::findOne()`` method.
57
+ ``MongoDB\Collection::find()`` method.
58
58
59
59
The following example finds all restaurants that have a ``cuisine`` field value
60
60
of ``'Italian'`` and limits the results to ``5`` documents:
@@ -159,7 +159,7 @@ skipping the first ``10`` documents:
159
159
160
160
.. io-code-block::
161
161
:copyable:
162
-
162
+
163
163
.. input:: /includes/read/limit-skip-sort.php
164
164
:start-after: start-limit-sort-skip
165
165
:end-before: end-limit-sort-skip
You can’t perform that action at this time.
0 commit comments