Skip to content

Commit 5e97ce5

Browse files
committed
Address further technical feedback
1 parent 71ff25a commit 5e97ce5

File tree

1 file changed

+15
-29
lines changed

1 file changed

+15
-29
lines changed

source/read/change-streams.txt

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -84,31 +84,23 @@ as it occurs. The printed change event resembles the
8484
following:
8585

8686
.. code-block:: json
87-
:emphasize-lines: 14-20
8887

8988
{
90-
"cursor": {
91-
"nextBatch": [
92-
{
93-
"_id": { ... },
94-
"operationType": "update",
95-
"clusterTime": { ... },
96-
...
97-
"ns": {
98-
"db": "sample_restaurants",
99-
"coll": "restaurants"
100-
},
101-
...
102-
"updateDescription": {
103-
"updatedFields": {
104-
"cuisine": "Irish"
105-
},
106-
"removedFields": [],
107-
"truncatedArrays": []
108-
}
109-
}
110-
],
111-
...
89+
"_id": { ... },
90+
"operationType": "update",
91+
"clusterTime": { ... },
92+
...
93+
"ns": {
94+
"db": "sample_restaurants",
95+
"coll": "restaurants"
96+
},
97+
...
98+
"updateDescription": {
99+
"updatedFields": {
100+
"cuisine": "Irish"
101+
},
102+
"removedFields": [],
103+
"truncatedArrays": []
112104
}
113105
}
114106

@@ -177,9 +169,6 @@ of ``watch()``:
177169
* - ``comment()``
178170
- | Specifies a comment to attach to the operation.
179171

180-
* - ``forEach()``
181-
- | Performs the given action on each element and safely closes the cursor.
182-
183172
* - ``fullDocument()``
184173
- | Sets the ``fullDocument`` value. To learn more, see the
185174
:ref:`<kotlin-sync-change-stream-pre-post-image>` section of this document.
@@ -192,9 +181,6 @@ of ``watch()``:
192181
- | Sets the maximum await execution time on the server for this operation, in
193182
milliseconds.
194183

195-
* - ``toCollection()``
196-
- | Inserts all elements into the given destination collection.
197-
198184
For a complete list of methods you can use to configure the ``watch()`` method, see
199185
the `ChangeStreamIterable <{+api+}/com.mongodb.kotlin.client/-change-stream-iterable/index.html>`__
200186
API documentation.

0 commit comments

Comments
 (0)