File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ method. See the following examples to learn more about each of these approaches.
4545 ];
4646
4747 // Executes the aggregation pipeline
48- const results = async collection.aggregate(pipeline);
48+ const results = await collection.aggregate(pipeline);
4949
5050 .. tab:: Direct Aggregation
5151 :tabid: pipeline-direct
5252
5353 .. code-block:: javascript
5454
5555 // Defines and executes the aggregation pipeline
56- const results = async collection.aggregate([
56+ const results = await collection.aggregate([
5757 { $match: { ... } },
5858 { $group: { ... } }
5959 ]);
@@ -101,12 +101,12 @@ manual.
101101 * - :manual:`$changeStreamSplitLargeEvent
102102 </reference/operator/aggregation/changeStreamSplitLargeEvent/>`
103103 - Splits large change stream events that exceed 16 MB into smaller fragments returned
104- in a change stream cursor. Must be the first stage in the pipeline.
104+ in a change stream cursor. Must be the last stage in the pipeline.
105105
106106 ``$changeStreamSplitLargeEvent`` returns an ``AggregationCursor`` when
107107 passed to the ``aggregate()`` method and a ``ChangeStreamCursor`` when
108108 passed to the ``watch()`` method.
109-
109+
110110 * - :manual:`$collStats </reference/operator/aggregation/collStats/>`
111111 - Returns statistics regarding a collection or view.
112112
You can’t perform that action at this time.
0 commit comments