@@ -44,14 +44,14 @@ Settings
44
44
| An array of aggregation pipelines to run in your change stream.
45
45
You must configure this setting for the change stream
46
46
event document, not the ``fullDocument`` field.
47
-
48
- For example:
47
+ |
48
+ | For example:
49
49
50
50
.. code-block:: none
51
51
52
52
[{"$match": { "$and": [{"operationType": "insert"}, {"fullDocument.eventId": 1404 }] } }]
53
53
54
- For more examples, see:
54
+ | For more examples, see:
55
55
56
56
- :ref:`<source-usage-example-custom-pipeline>`
57
57
- :ref:`<source-usage-example-multiple-sources>`
@@ -65,21 +65,24 @@ Settings
65
65
| **Description:**
66
66
| Determines what values your change stream returns on update
67
67
operations.
68
+ |
68
69
| The default setting returns the differences between the original
69
70
document and the updated document.
71
+ |
70
72
| The ``updateLookup`` setting returns the differences between the
71
73
original document and updated document as well as a copy of the
72
74
entire updated document at a *point in time* after the update.
75
+ |
73
76
| The ``whenAvailable`` setting returns the updated document,
74
77
if available.
78
+ |
75
79
| The ``required`` setting returns the updated document and
76
80
raises an error if it is not available.
77
-
78
- For more information on how this change stream option works, see
79
- :manual:`Lookup Full Document for Update Operations
80
- </changeStreams/#lookup-full-document-for-update-operations>`
81
- in the MongoDB manual.
82
-
81
+ |
82
+ | For more information on how this change stream option works, see
83
+ :manual:`Lookup Full Document for Update Operations
84
+ </changeStreams/#lookup-full-document-for-update-operations>`
85
+ in the MongoDB manual.
83
86
|
84
87
| **Default**: ``""``
85
88
| **Accepted Values**: ``""``, ``"updateLookup"``, ``"whenAvailable"``, or ``"required"``
0 commit comments