Skip to content

Commit 6a79231

Browse files
committed
JS feedback
1 parent 4fcfaf5 commit 6a79231

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

source/aggregation.txt

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ You can use aggregation operations to perform the following actions:
6767
Limitations
6868
~~~~~~~~~~~
6969

70-
Keep the following limitations in mind when using aggregation operations:
70+
Consider the following limitations when performing aggregation operations:
7171

7272
- Returned documents cannot violate the
7373
:manual:`BSON document size limit </reference/limits/#mongodb-limit-BSON-Document-Size>`
@@ -76,11 +76,11 @@ Keep the following limitations in mind when using aggregation operations:
7676
limit by creating an options array that sets the ``allowDiskUse`` option to ``true``
7777
and passing the array to the ``MongoDB\Collection::aggregate()`` method.
7878

79-
.. important:: $graphLookup Exception
79+
.. important:: $graphLookup Exception
8080

81-
The :manual:`$graphLookup
82-
</reference/operator/aggregation/graphLookup/>` stage has a strict
83-
memory limit of 100 megabytes and ignores the ``allowDiskUse`` option.
81+
The :manual:`$graphLookup
82+
</reference/operator/aggregation/graphLookup/>` stage has a strict
83+
memory limit of 100 megabytes and ignores the ``allowDiskUse`` option.
8484

8585
.. _php-aggregation-example:
8686

@@ -118,7 +118,7 @@ of New York. To do so, it uses an aggregation pipeline that contains the followi
118118

119119
.. output::
120120
:visible: false
121-
121+
122122
{"_id":"Brooklyn","count":173}
123123
{"_id":"Queens","count":204}
124124
{"_id":"Bronx","count":71}
@@ -132,13 +132,13 @@ Explain an Aggregation
132132
To view information about how MongoDB executes your operation, you can
133133
instruct the MongoDB query planner to **explain** it. When MongoDB explains
134134
an operation, it returns **execution plans** and performance statistics.
135-
An execution plan is a potential way MongoDB can complete an operation.
135+
An execution plan is a potential way in which MongoDB can complete an operation.
136136
When you instruct MongoDB to explain an operation, it returns both the
137137
plan MongoDB executed and any rejected execution plans.
138138

139139
To explain an aggregation operation, run the ``explain`` database command by passing
140-
the command information to the ``MongoDB\Database::command()`` method. You must set the
141-
``aggregate``, ``pipeline``, and ``cursor`` fields of the ``explain`` command document
140+
the command information to the ``MongoDB\Database::command()`` method. You must specify the
141+
``aggregate``, ``pipeline``, and ``cursor`` fields in the ``explain`` command document
142142
to explain the aggregation.
143143

144144
The following example instructs MongoDB to explain the aggregation operation from the
@@ -169,18 +169,21 @@ Additional Information
169169
MongoDB Server Manual
170170
~~~~~~~~~~~~~~~~~~~~~
171171

172-
To view a full list of expression operators, see :manual:`Aggregation
173-
Operators. </reference/operator/aggregation/>`
172+
To learn more about the topics discussed in this guide, see the following
173+
pages in the {+mdb-server+} manual:
174+
175+
- To view a full list of expression operators, see :manual:`Aggregation
176+
Operators </reference/operator/aggregation/>`.
174177

175-
To learn about assembling an aggregation pipeline and view examples, see
176-
:manual:`Aggregation Pipeline. </core/aggregation-pipeline/>`
178+
- To learn about assembling an aggregation pipeline and to view examples, see
179+
:manual:`Aggregation Pipeline </core/aggregation-pipeline/>`.
177180

178-
To learn more about creating pipeline stages, see :manual:`Aggregation
179-
Stages. </reference/operator/aggregation-pipeline/>`
181+
- To learn more about creating pipeline stages, see :manual:`Aggregation
182+
Stages </reference/operator/aggregation-pipeline/>`.
180183

181-
To learn more about explaining MongoDB operations, see
182-
:manual:`Explain Output </reference/explain-results/>` and
183-
:manual:`Query Plans. </core/query-plans/>`
184+
- To learn more about explaining MongoDB operations, see
185+
:manual:`Explain Output </reference/explain-results/>` and
186+
:manual:`Query Plans </core/query-plans/>`.
184187

185188
.. TODO:
186189
Aggregation Tutorials

0 commit comments

Comments
 (0)