Skip to content

Commit ea03c24

Browse files
authored
Merge pull request #166 from lmkerbey-mdb/DOCSP-42593
(DOCSP-42593) Add info about necessity of ns field.
2 parents 702c8ff + 1f47d04 commit ea03c24

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/source-connector/usage-examples/custom-pipeline.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ to your ``pipeline`` setting:
5959

6060
.. important::
6161

62-
Make sure that the results of the pipeline contain the top-level ``_id``
63-
field of the ``payload`` object, which MongoDB uses as the value of the
64-
:manual:`resume token </changeStreams/#resume-a-change-stream>`.
65-
62+
Make sure that the results of the pipeline contain the top-level
63+
``_id`` and ``ns`` fields of the ``payload`` object. MongoDB uses
64+
``id`` as the value of the :manual:`resume token
65+
</changeStreams/#resume-a-change-stream>`, and ``ns`` to generate the
66+
Kafka output topic name.
67+
6668
When the application inserts the sample document, your configured
6769
connector publishes the following record to your Kafka topic:
6870

0 commit comments

Comments
 (0)