diff --git a/source/reference/change-events.txt b/source/reference/change-events.txt index 0b2988983a2..f0b1c634ddd 100644 --- a/source/reference/change-events.txt +++ b/source/reference/change-events.txt @@ -60,7 +60,12 @@ following table describes each field in the change stream response document: * - ``_id`` - document - - Metadata related to the operation. + - .. _change-stream-event-id: + + A :term:`BSON` object which serves as an identifier for the + change stream event. This value is used as the ``resumeToken`` + for the ``resumeAfter`` parameter when resuming a change stream. + The ``_id`` object has the following form: .. code-block:: none @@ -68,13 +73,14 @@ following table describes each field in the change stream response document: "_data" : } - Use this document as a ``resumeToken`` for the ``resumeAfter`` - parameter when resuming a change stream. + The ``_data`` type depends on the MongoDB versions + and, in some cases, the :ref:`feature compatibility version (fCV) + ` at the time of the change stream's + opening/resumption. See :ref:`change-stream-resume-token` for the + full list of ``_data`` types. - The resume token ``_data`` type depends on the MongoDB versions - and, in some cases, the feature compatibility version (fcv) at - the time of the change stream's opening/resumption. For details, - see :ref:`change-stream-resume-token`. + See :ref:`change-stream-resume` for an example of resuming a + change stream by ``resumeToken``. * - ``operationType`` - string