File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -34,29 +34,29 @@ method. See the following examples to learn more about each of these approaches.
3434.. tabs::
3535
3636 .. tab:: Create a Pipeline
37- :tabid: pipeline-definition
37+ :tabid: pipeline-definition
3838
39- .. code-block:: javascript
39+ .. code-block:: javascript
4040
41- // Defines the aggregation pipeline
42- const pipeline = [
43- { $match: { ... } },
44- { $group: { ... } }
45- ];
41+ // Defines the aggregation pipeline
42+ const pipeline = [
43+ { $match: { ... } },
44+ { $group: { ... } }
45+ ];
4646
47- // Executes the aggregation pipeline
48- const results = await collection.aggregate(pipeline);
47+ // Executes the aggregation pipeline
48+ const results = await collection.aggregate(pipeline);
4949
5050 .. tab:: Direct Aggregation
51- :tabid: pipeline-direct
51+ :tabid: pipeline-direct
5252
53- .. code-block:: javascript
53+ .. code-block:: javascript
5454
55- // Defines and executes the aggregation pipeline
56- const results = await collection.aggregate([
57- { $match: { ... } },
58- { $group: { ... } }
59- ]);
55+ // Defines and executes the aggregation pipeline
56+ const results = await collection.aggregate([
57+ { $match: { ... } },
58+ { $group: { ... } }
59+ ]);
6060
6161Aggregation Stage Methods
6262-------------------------
You can’t perform that action at this time.
0 commit comments