@@ -47,15 +47,16 @@ collection:
4747Skip Documents
4848--------------
4949
50- This section describes how to skip results retrieved by a query in the following ways:
50+ You can skip results retrieved by a query, or you can skip results within an
51+ aggregation pipeline.
52+
53+ This section describes how to skip results in the following ways:
5154
5255- :ref:`skip() method <rust-skip-method>`: Chain the ``skip()`` method to the
5356 ``find()`` method
54- - :ref:`FindOptions::skip() method <rust-findoptions-skip>`: Use the ``skip()``
55- method of the ``FindOptions`` struct
56-
57- Alternatively, you can :ref:`skip documents in an aggregation pipeline
58- <rust-aggregation-skip>`.
57+ - :ref:`FindOptions struct <rust-findoptions-skip>`: Use the ``skip()`` option
58+ builder method to configure a ``FindOptions`` struct
59+ - :ref:`Aggregation pipleline <rust-aggregation-skip>`: Create a pipeline that uses the ``$skip`` stage
5960
6061If the number of skipped documents exceeds the number of matched documents for a
6162query, then that query returns no documents.
@@ -70,9 +71,9 @@ more, see the :ref:`rust-sort-guide` guide.
7071skip() Method Example
7172~~~~~~~~~~~~~~~~~~~~~~
7273
74+ To skip documents, you can chain the ``skip()`` method to the ``find()`` method.
7375The ``skip()`` method takes an integer that specifies the number of documents to
74- omit from the beginning of the result set. Chain the ``skip()`` method
75- to the ``find()`` method to skip documents.
76+ omit from the beginning of the result set.
7677
7778This example runs a ``find()`` operation that performs the following actions:
7879
@@ -103,15 +104,14 @@ Options Example
103104
104105Alternatively, if you are setting and reusing options for your query, you can
105106use ``FindOptions``. Set the ``skip`` field of the ``FindOptions`` struct by
106- using the ``skip()`` setter method. Then, chain the ``with_options()`` method to
107- the ``find()`` method and pass your ``FindOptions`` struct as a parameter to the
108- ``with_options()`` method.
107+ using the ``skip()`` option builder method. Then, chain the ``with_options()``
108+ method to the ``find()`` method and pass your ``FindOptions`` struct as a
109+ parameter to the ``with_options()`` method.
109110
110111This example runs a ``find()`` operation that performs the following actions:
111112
112113- Sorts the results in descending order of their ``name`` field values
113114- Skips the first document
114- - Limits the results to two documents
115115- Returns the remaining documents
116116
117117.. io-code-block::
@@ -136,7 +136,7 @@ Aggregation Example
136136~~~~~~~~~~~~~~~~~~~
137137
138138You can use the ``$skip`` stage in an aggregation pipeline to skip documents. To
139- learn more, see the :ref:`rust-aggregation` guide.
139+ learn more about aggregation operations , see the :ref:`rust-aggregation` guide.
140140
141141This example runs an aggregation pipeline that performs the following actions:
142142
0 commit comments