Skip to content

Commit bf3fa55

Browse files
authored
DOCSP-52075 - Add databaseName property (#1203)
1 parent 24007d3 commit bf3fa55

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

source/aggregation/pipeline-stages.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff 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

6161
Aggregation Stage Methods
6262
-------------------------

source/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ For more information about using ODMs with MongoDB, see the following resources:
153153

154154
- :website:`MongoDB ORMs, ODMs, and Libraries </developer/products/mongodb/mongodb-orms-odms-libraries/>`
155155
- `Mongoose <https://mongoosejs.com/docs/guide.html>`__ official documentation
156-
- :ref:`<node-mongoose-get-started>` tutorial
156+
- :ref:`Get Started with Mongoose <node-mongoose-get-started>` tutorial
157157
- `Prisma <https://www.prisma.io/docs>`__ official documentation
158158

159159
Packages

source/monitoring-and-logging/monitoring.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ commandSucceeded
138138

139139
CommandSucceededEvent {
140140
requestId: 1534,
141+
databaseName: "app",
141142
commandName: "find",
142143
address: 'localhost:27017',
143144
connectionId: 812613,
@@ -168,6 +169,7 @@ commandFailed
168169

169170
CommandFailedEvent {
170171
requestId: 1534,
172+
databaseName: "app",
171173
commandName: "find",
172174
address: 'localhost:27017',
173175
connectionId: 812613,

0 commit comments

Comments
 (0)