Skip to content

Commit 4d3aa2e

Browse files
committed
DOCSP-51959 tryNext resumeToken error warning
1 parent b495e1c commit 4d3aa2e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ read events from the change stream:
8888
- ``next()`` to request the next document in the stream
8989
- ``close()`` to close the ChangeStream
9090

91+
.. include:: /includes/try-next-warning.rst
9192

9293
.. tab::
9394
:tabid: Event

0 commit comments

Comments
 (0)