File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Overview
24
24
In this guide, you can learn how to retrieve a list of distinct values for a
25
25
field across a collection by calling the ``distinct()`` method on a
26
26
``MongoCollection`` object. Pass the document field name as the first parameter
27
- and the class you want to use for the results format as the second parameter as shown
27
+ and the class you want to use for the results as the second parameter, as shown
28
28
below:
29
29
30
30
.. code-block:: java
Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ events that the change stream listens for:
70
70
Filter the Events
71
71
~~~~~~~~~~~~~~~~~
72
72
73
- The ``watch()`` method optionally takes an **aggregation pipeline** which
74
- consists of a list of **stages** as the first parameter, which can be used to
75
- filter and transform the change event output, as follows:
73
+ The ``watch()`` method takes an optional **aggregation pipeline** as the first
74
+ parameter, which consists of a list of **stages** that can be used to
75
+ filter and transform the change event output, as follows:
76
76
77
77
.. code-block:: java
78
78
You can’t perform that action at this time.
0 commit comments