Skip to content

Commit b75194c

Browse files
committed
DOCSP-50497 edits
1 parent 1b44eec commit b75194c

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

source/aggregation.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ computed results. The MongoDB Aggregation framework is modeled on the
3737
concept of data processing pipelines. Documents enter a pipeline comprised of one or
3838
more stages, and this pipeline transforms the documents into an aggregated result.
3939

40-
To learn more about the aggregation stages supported by the Node.js Driver, see :ref:`Aggregation Pipeline Stages <node-aggregation-pipeline-stages>`.
40+
To learn more about the aggregation stages supported by the {+driver-short+},
41+
see :ref:` <node-aggregation-pipeline-stages>`.
4142

4243
.. _node-aggregation-tutorials:
4344

@@ -94,10 +95,11 @@ that allows you to transform and manipulate your data.
9495
Server Limitations
9596
------------------
9697

97-
Consider the following :manual:`limitations </core/aggregation-pipeline-limits/>` when performing aggregation operations:
98+
Consider the following :manual:`limitations
99+
</core/aggregation-pipeline-limits/>` when performing aggregation operations:
98100

99-
- Returned documents must not violate the :manual:`BSON document size limit </reference/limits/#mongodb-limit-BSON-Document-Size>`
100-
of 16 megabytes.
101+
- Returned documents must not violate the :manual:`BSON document size limit
102+
</reference/limits/#mongodb-limit-BSON-Document-Size>` of 16 megabytes.
101103
- Pipeline stages have a memory limit of 100 megabytes by default. If required,
102104
you can exceed this limit by enabling the `AllowDiskUse
103105
<https://mongodb.github.io/node-mongodb-native/6.17/interfaces/AggregateOptions.html#allowDiskUse>`__
@@ -107,9 +109,9 @@ Consider the following :manual:`limitations </core/aggregation-pipeline-limits/>
107109
Additional information
108110
----------------------
109111

110-
To view a full list of expression operators, see
111-
:manual:`Aggregation Operators </reference/operator/aggregation/>`.
112+
To view a full list of expression operators, see :manual:`Aggregation Operators
113+
</reference/operator/aggregation/>` in the {+mdb-server+} manual.
112114

113-
To learn about explaining MongoDB aggregation operations, see
114-
:manual:`Explain Results </reference/explain-results/>` and
115-
:manual:`Query Plans </core/query-plans/>`.
115+
To learn about explaining MongoDB aggregation operations, see :manual:`Explain
116+
Results </reference/explain-results/>` and :manual:`Query Plans
117+
</core/query-plans/>` in the {+mdb-server+} manual.

source/aggregation/pipeline-stages.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@ method. See the following examples to learn more about each of these approaches.
3838

3939
.. 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 = collection.aggregate(pipeline);
47+
// Executes the aggregation pipeline
48+
const results = collection.aggregate(pipeline);
4949

5050
.. tab:: Direct Aggregation
5151
:tabid: pipeline-direct
5252

5353
.. code-block:: javascript
5454

55-
// Defines and executes the aggregation pipeline
56-
collection.aggregate([
57-
{ $match: { ... } },
58-
{ $group: { ... } }
59-
]);
55+
// Defines and executes the aggregation pipeline
56+
collection.aggregate([
57+
{ $match: { ... } },
58+
{ $group: { ... } }
59+
]);
6060

6161
Aggregation Stage Methods
6262
-------------------------
@@ -115,7 +115,7 @@ manual.
115115

116116
* - :manual:`$currentOp </reference/operator/aggregation/currentOp/>`
117117
- Returns a stream of documents containing information on active and
118-
dormant operations as well as inactive sessions that are holding locks as
118+
dormant operations and any inactive sessions that are holding locks as
119119
part of a transaction.
120120

121121
* - :manual:`$densify </reference/operator/aggregation/densify/>`
@@ -303,7 +303,7 @@ API Documentation
303303
~~~~~~~~~~~~~~~~~
304304

305305
To learn more about assembling an aggregation pipeline, see :manual:`Aggregation
306-
Pipeline </core/aggregation-pipeline/>` in the MongoDB Server manual.
306+
Pipeline </core/aggregation-pipeline/>` in the {+mdb-server+} manual.
307307

308308
To learn more about creating pipeline stages, see :manual:`Aggregation Stages
309309
</reference/operator/aggregation-pipeline/>` in the MongoDB Server manual.

0 commit comments

Comments
 (0)