Skip to content

Commit d413809

Browse files
authored
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
1 parent 4b6af7d commit d413809

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/reference/operator/aggregation/changeStream.txt

Lines changed: 6 additions & 5 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
@@ -94,7 +96,6 @@ event notification. For example:
9496
},
9597
"operationType": "insert",
9698
"clusterTime": Timestamp({ t: 1659039316, i: 2 }),
97-
"wallTime": ISODate("2022-07-28T20:15:16.148Z"),
9899
"fullDocument": {
99100
"_id": ObjectId("62e2ee54c8756c0d5cf6f072"),
100101
"name": "Walker Percy"
@@ -107,4 +108,4 @@ event notification. For example:
107108
}
108109

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

0 commit comments

Comments
 (0)