Skip to content

Commit 6b68a97

Browse files
committed
JS feedback
1 parent 0c07221 commit 6b68a97

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/read/retrieve.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Find Documents
4949

5050
The {+php-library+} includes two methods for retrieving documents from a collection:
5151
``MongoDB\Collection::findOne()`` and ``MongoDB\Collection::find()``. These methods
52-
take a **query filter** and return one or more matching documents. A query filter is
53-
an object that specifies the documents you want to retrieve in your query.
52+
take a **query filter** and return one or more matching documents. A query filter
53+
specifies the search criteria that the driver uses to retrieve documents in your query.
5454

5555
.. TODO: To learn more about query filters, see :ref:`php-specify-query`.
5656

@@ -79,6 +79,7 @@ The following example uses the ``findOne()`` method to find the first document i
7979
the ``name`` field has the value ``'LinkedIn'``:
8080

8181
.. io-code-block::
82+
:copyable:
8283

8384
.. input:: /includes/read/retrieve.php
8485
:start-after: start-find-one
@@ -126,6 +127,7 @@ You can iterate over the documents in a cursor by using a ``foreach`` loop, as s
126127
the following example:
127128

128129
.. io-code-block::
130+
:copyable:
129131

130132
.. input:: /includes/read/retrieve.php
131133
:start-after: start-cursor
@@ -163,7 +165,7 @@ Modify Find Behavior
163165

164166
You can modify the behavior of the ``MongoDB\Collection::find()`` and
165167
``MongoDB\Collection::findOne()`` methods by passing an array that specifies
166-
option values as a parameter. The following table describes some of the options
168+
option values as a parameter. The following table describes some options
167169
you can set in the array:
168170

169171
.. list-table::
@@ -209,8 +211,8 @@ you can set in the array:
209211
| **Type**: ``array``
210212

211213
The following example uses the ``find()`` method to find all documents in which
212-
the ``number_of_employees`` field has the value ``1000`` and instructs the
213-
operation to return a maximum of ``5`` results:
214+
the ``number_of_employees`` field has the value ``1000``. The example uses the
215+
``limit`` option to return a maximum of ``5`` results:
214216

215217
.. literalinclude:: /includes/read/retrieve.php
216218
:language: php

0 commit comments

Comments
 (0)