Skip to content

Commit 81e1af5

Browse files
committed
Fixes
1 parent 55f1d1f commit 81e1af5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/read/change-streams.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ and prints changes as they occur:
6161
:end-before: end-open-change-stream
6262
:language: kotlin
6363
:copyable:
64+
:dedent:
6465

6566
To begin watching for changes, run the application. Then, in a separate
6667
application or shell, modify the ``restaurants`` collection. The following
@@ -73,6 +74,7 @@ example updates a document with a ``name`` field value of ``Blarney Castle``:
7374
:end-before: end-update-for-change-stream
7475
:language: kotlin
7576
:copyable:
77+
:dedent:
7678

7779
When you update the collection, the change stream application prints the change
7880
as it occurs. The printed change event resembles the
@@ -133,6 +135,7 @@ that records only update operations:
133135
:end-before: end-change-stream-pipeline
134136
:language: kotlin
135137
:copyable:
138+
:dedent:
136139

137140
To learn more about modifying your change stream output, see the
138141
:manual:`Modify Change Stream Output
@@ -216,7 +219,7 @@ one of the following parameters:
216219
driver raises an error.
217220

218221
The **post-image** is the full version of a document *after* a change. To include the
219-
post-image in the change stream event, pass the ``fullDocument`` method one of the
222+
post-image in the change stream event, pass the ``fullDocument()`` method one of the
220223
following parameters:
221224

222225
- ``FullDocument.UPDATE_LOOKUP``: The change event includes a copy of the entire changed
@@ -235,6 +238,7 @@ of updated documents by specifying the ``fullDocument`` parameter:
235238
:end-before: end-change-stream-post-image
236239
:language: kotlin
237240
:copyable:
241+
:dedent:
238242

239243
With the change stream application running, updating a document in the
240244
``restaurants`` collection by using the :ref:`preceding update example
@@ -243,7 +247,7 @@ With the change stream application running, updating a document in the
243247

244248
.. code-block:: sh
245249

246-
Received a change: ChangeStreamDocument{ operationType=update, resumeToken={"_data": "..."},
250+
ChangeStreamDocument{ operationType=update, resumeToken={"_data": "..."},
247251
namespace=sample_restaurants.restaurants, destinationNamespace=null, fullDocument=Restaurant(name=Blarney Castle, cuisine=Irish),
248252
fullDocumentBeforeChange=null, documentKey={"_id": {"$oid": "..."}},
249253
clusterTime=Timestamp{value=..., seconds=..., inc=...},

0 commit comments

Comments
 (0)