We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b495e1c commit 4d3aa2eCopy full SHA for 4d3aa2e
source/includes/try-next-warning.rst
@@ -0,0 +1,6 @@
1
+.. warning:: Outdated resumeToken with ``tryNext()``
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.
source/monitoring-and-logging/change-streams.txt
@@ -88,6 +88,7 @@ read events from the change stream:
88
- ``next()`` to request the next document in the stream
89
- ``close()`` to close the ChangeStream
90
91
+ .. include:: /includes/try-next-warning.rst
92
93
.. tab::
94
:tabid: Event
0 commit comments