Skip to content

Commit 3eb7193

Browse files
committed
(DOCSP-42593) Add info about necessity of ns field.
1 parent 8d90da1 commit 3eb7193

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)