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.
45
45
];
46
46
47
47
// Executes the aggregation pipeline
48
- const results = async collection.aggregate(pipeline);
48
+ const results = await collection.aggregate(pipeline);
49
49
50
50
.. tab:: Direct Aggregation
51
51
:tabid: pipeline-direct
52
52
53
53
.. code-block:: javascript
54
54
55
55
// Defines and executes the aggregation pipeline
56
- const results = async collection.aggregate([
56
+ const results = await collection.aggregate([
57
57
{ $match: { ... } },
58
58
{ $group: { ... } }
59
59
]);
@@ -101,12 +101,12 @@ manual.
101
101
* - :manual:`$changeStreamSplitLargeEvent
102
102
</reference/operator/aggregation/changeStreamSplitLargeEvent/>`
103
103
- 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.
105
105
106
106
``$changeStreamSplitLargeEvent`` returns an ``AggregationCursor`` when
107
107
passed to the ``aggregate()`` method and a ``ChangeStreamCursor`` when
108
108
passed to the ``watch()`` method.
109
-
109
+
110
110
* - :manual:`$collStats </reference/operator/aggregation/collStats/>`
111
111
- Returns statistics regarding a collection or view.
112
112
You can’t perform that action at this time.
0 commit comments