Skip to content

Commit 40bc91d

Browse files
authored
DOCS-15948 taking out field not present in 5.0 (#3430) (#3447)
* DOCS-15948 taking out field not present in 5.0 * esolved typo, fixing docs to make the objectives clearer * making copy more clear * wrapping
1 parent be7d498 commit 40bc91d

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
@@ -80,10 +80,12 @@ the :dbcommand:`aggregate` command.
8080
var cur = db.names.aggregate( [
8181
{ $changeStream: {} }
8282
] )
83-
cur.next()
8483

85-
When the change stream detects a change, the ``next()`` method returns a change
86-
event notification. For example:
84+
To open the cursor, run ``cur``.
85+
86+
When the change stream detects a change, the ``next()`` method returns
87+
a change event notification. For example, after running ``cur.next()``,
88+
MongoDB returns a document similar to the following:
8789

8890
.. code-block:: json
8991
:copyable: false
@@ -106,4 +108,4 @@ event notification. For example:
106108
}
107109

108110
For more information on change stream notifications, see :ref:`Change Events
109-
<change-events>`
111+
<change-events>`.

0 commit comments

Comments
 (0)