@@ -31,7 +31,7 @@ Aggregation
3131Overview
3232--------
3333
34- In this guide, you can learn how to use the MongoDB {+driver+} to perform
34+ In this guide, you can learn how to use the MongoDB Node.js Driver to perform
3535**aggregation operations**.
3636
3737Aggregation operations process data in your MongoDB collections and return
@@ -97,12 +97,9 @@ Consider the following :manual:`limitations </core/aggregation-pipeline-limits/>
9797 property of the ``AggregateOptions`` object that you pass to the
9898 ``Aggregate()`` method.
9999
100- - The :manual:`$graphLookup
101- </reference/operator/aggregation/graphLookup/>` stage has a strict memory
100+ - The :manual:`$graphLookup </reference/operator/aggregation/graphLookup/>` stage has a strict memory
102101 limit of 100 megabytes and will ignore the ``AllowDiskUse`` property.
103102
104- .. note /code-snippets/aggregation/agg.js deleted - check if file used elsewhere
105-
106103Aggregation Example
107104-------------------
108105
@@ -125,25 +122,23 @@ of New York City. To do so, the aggregation pipeline uses the following aggregat
125122 matching documents by the ``borough`` field, accumulating a count of documents
126123 for each distinct value in the ``borough`` field.
127124
128- .. io-code-block::
129-
130- .. input:: /code-snippets/aggregation/agg.js
131- :start-after: begin aggregation
132- :end-before: end aggregation
133- :language: javascript
134- :dedent:
135-
136- .. output::
137- :language: console
138- :copyable: false
139- :visible: false
140-
141- { _id = Bronx, Count = 71 }
142- { _id = Brooklyn, Count = 173 }
143- { _id = Staten Island, Count = 20 }
144- { _id = Missing, Count = 2 }
145- { _id = Manhattan, Count = 221 }
146- { _id = Queens, Count = 204 }
125+ .. literalinclude:: /code-snippets/aggregation/agg.js
126+ :start-after: begin aggregation
127+ :end-before: end aggregation
128+ :language: javascript
129+ :dedent:
130+
131+ This example produces the following output:
132+
133+ .. code-block:: json
134+ :copyable: false
135+
136+ { _id = Bronx, Count = 71 }
137+ { _id = Brooklyn, Count = 173 }
138+ { _id = Staten Island, Count = 20 }
139+ { _id = Missing, Count = 2 }
140+ { _id = Manhattan, Count = 221 }
141+ { _id = Queens, Count = 204 }
147142
148143Additional information
149144----------------------
0 commit comments