Skip to content

Commit

Permalink
(DOCSP-42962) Unnested 1 example and 3 tips.
Browse files Browse the repository at this point in the history
  • Loading branch information
your proper name committed Oct 4, 2024
1 parent a423771 commit b44b8f5
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions source/source-connector/configuration-properties/change-stream.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ Settings
You must configure this setting for the change stream
event document, not the ``fullDocument`` field.

.. example::
For example:

.. code-block:: none
.. code-block:: none

[{"$match": { "$and": [{"operationType": "insert"}, {"fullDocument.eventId": 1404 }] } }]
[{"$match": { "$and": [{"operationType": "insert"}, {"fullDocument.eventId": 1404 }] } }]

.. tip:: Additional Examples
For more examples, see:

- :ref:`<source-usage-example-custom-pipeline>`
- :ref:`<source-usage-example-multiple-sources>`
- :ref:`<source-usage-example-custom-pipeline>`
- :ref:`<source-usage-example-multiple-sources>`

| **Default**: ``"[]"``
| **Accepted Values**: Valid aggregation pipeline stage
Expand All @@ -75,11 +75,10 @@ Settings
| The ``required`` setting returns the updated document and
raises an error if it is not available.

.. tip::

For more information on how this change stream option works, see
the MongoDB server manual guide on :manual:`Lookup Full Document for
Update Operations </changeStreams/#lookup-full-document-for-update-operations>`.
For more information on how this change stream option works, see
:manual:`Lookup Full Document for Update Operations
</changeStreams/#lookup-full-document-for-update-operations>`
in the MongoDB manual.

|
| **Default**: ``""``
Expand All @@ -94,11 +93,9 @@ Settings
published while copying existing data, and the pre-image configuration
has no effect on copying.

.. tip::

To learn how to configure a collection to enable
pre-images, see the :manual:`Server manual entry on pre- and
post-images </changeStreams/#change-streams-with-document-pre--and-post-images>`.
To learn how to configure a collection to enable
pre-images, see the :manual:`Change Streams with Document Pre- and Post-Images
</changeStreams/#change-streams-with-document-pre--and-post-images>` in the MongoDB manual.

| The default setting suppresses the document pre-image.
| The ``whenAvailable`` setting returns the document pre-image if
Expand Down

0 comments on commit b44b8f5

Please sign in to comment.