File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ .. warning ::
2+
3+ The `tryNext() <{+api+}/classes/ChangeStream.html#tryNext >`_ method does not
4+ automatically update the change stream's `resumeToken.
5+ <{+api+}/classes/ChangeStream.html#resumeToken> `_ If you require an updated
6+ ``resumeToken ``, use the ``next() `` method.
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ section for more information on the settings you can configure with this object.
6060The ``watch()`` method returns an instance of a `ChangeStream <{+api+}/classes/ChangeStream.html>`__. You can read events from
6161change streams by iterating over them or listening for events.
6262
63+ .. include:: /includes/changestream-paradigm-warning.rst
64+
6365Select the tab that corresponds to the way you want to
6466read events from the change stream:
6567
@@ -88,6 +90,7 @@ read events from the change stream:
8890 - ``next()`` to request the next document in the stream
8991 - ``close()`` to close the ChangeStream
9092
93+ .. include:: /includes/try-next-warning.rst
9194
9295 .. tab::
9396 :tabid: Event
@@ -114,7 +117,7 @@ read events from the change stream:
114117
115118 changeStream.close();
116119
117- .. include:: /includes/changestream-paradigm-warning.rst
120+ .. _node-usage-watch:
118121
119122Examples
120123--------
You can’t perform that action at this time.
0 commit comments