Skip to content

Commit

Permalink
Merge pull request #166 from lmkerbey-mdb/DOCSP-42593
Browse files Browse the repository at this point in the history
(DOCSP-42593) Add info about necessity of ns field.
  • Loading branch information
lmkerbey-mdb authored Aug 16, 2024
2 parents 702c8ff + 1f47d04 commit ea03c24
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/source-connector/usage-examples/custom-pipeline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ to your ``pipeline`` setting:

.. important::

Make sure that the results of the pipeline contain the top-level ``_id``
field of the ``payload`` object, which MongoDB uses as the value of the
:manual:`resume token </changeStreams/#resume-a-change-stream>`.

Make sure that the results of the pipeline contain the top-level
``_id`` and ``ns`` fields of the ``payload`` object. MongoDB uses
``id`` as the value of the :manual:`resume token
</changeStreams/#resume-a-change-stream>`, and ``ns`` to generate the
Kafka output topic name.

When the application inserts the sample document, your configured
connector publishes the following record to your Kafka topic:

Expand Down

0 comments on commit ea03c24

Please sign in to comment.