@@ -21,15 +21,17 @@ Overview
21
21
--------
22
22
23
23
In this guide, you can learn how to use the {+driver-long+} to perform **limit**
24
- operations to limit the number of returned documents from a read operation.
24
+ operations. These operations specify the number of documents returned from a
25
+ read operation.
25
26
26
27
Use the ``limit()`` method to cap the number of documents that a read operation
27
28
can return. The operation returns fewer documents if there are not enough
28
29
documents present to reach the specified limit.
29
30
30
31
If you use the ``limit()`` method with the ``skip()`` method, the skip applies
31
32
first, and the limit only applies to the remaining documents. To learn more
32
- about skip operations, see :ref:`Skip Returned Results <rust-skip-guide>`.
33
+ about skip operations, see the :ref:`Skip Returned Results <rust-skip-guide>`
34
+ guide.
33
35
34
36
Sample Data for Examples
35
37
------------------------
@@ -62,7 +64,7 @@ This section describes how to limit results in the following ways:
62
64
63
65
- :ref:`limit() method <rust-limit-method>`: Chain the ``limit()`` method to the
64
66
``find()`` method
65
- - :ref:`FindOptions struct <rust-findoptions-limit>`: Use the ``limit() `` option
67
+ - :ref:`FindOptions struct <rust-findoptions-limit>`: Use the ``limit`` option
66
68
- :ref:`Aggregation pipleline <rust-aggregation-limit>`: Create a pipeline that uses the ``$limit`` stage
67
69
68
70
.. _rust-limit-method:
@@ -166,7 +168,6 @@ To learn more about the operations mentioned in this guide, see the following gu
166
168
167
169
- :ref:`rust-query-guide`
168
170
- :ref:`rust-retrieve-guide`
169
- - :ref:`rust-compound-operations`
170
171
- :ref:`rust-aggregation`
171
172
- :ref:`rust-sort-guide`
172
173
@@ -178,7 +179,5 @@ following API documentation:
178
179
179
180
- `find() <{+api+}/struct.Collection.html#method.find>`__
180
181
- `FindOptions <{+api+}/options/struct.FindOptions.html>`__
181
- - `FindOneOptions <{+api+}/options/struct.FindOneOptions.html>`__
182
182
- `Cursor <{+api+}/struct.Cursor.html>`__
183
- - `aggregate() <{+api+}/struct.Collection.html#method.aggregate>`__
184
- - `AggregateOptions <{+api+}/options/struct.AggregateOptions.html>`__
183
+ - `aggregate() <{+api+}/struct.Collection.html#method.aggregate>`__
0 commit comments