Skip to content

Commit 5c6fb94

Browse files
authored
DOCS 15948 fix example field backport 6.0 (#3456)
* DOCS-15948 taking out field not present in 5.0 (#3430) * DOCS-15948 taking out field not present in 5.0 * esolved typo, fixing docs to make the objectives clearer * making copy more clear * wrapping * added back in metric
1 parent ca24f18 commit 5c6fb94

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/reference/operator/aggregation/changeStream.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,12 @@ the :dbcommand:`aggregate` command.
115115
var cur = db.names.aggregate( [
116116
{ $changeStream: {} }
117117
] )
118-
cur.next()
119118

120-
When the change stream detects a change, the ``next()`` method returns a change
121-
event notification. For example:
119+
To open the cursor, run ``cur``.
120+
121+
When the change stream detects a change, the ``next()`` method returns
122+
a change event notification. For example, after running ``cur.next()``,
123+
MongoDB returns a document similar to the following:
122124

123125
.. code-block:: json
124126
:copyable: false
@@ -142,5 +144,5 @@ event notification. For example:
142144
}
143145

144146
For more information on change stream notifications, see :ref:`Change Events
145-
<change-events>`
147+
<change-events>`.
146148

0 commit comments

Comments
 (0)