Skip to content

Commit f72a217

Browse files
authored
DOCS 15948 fix example field backport 6.3 (#3459)
1 parent 83ac77f commit f72a217

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)