File tree Expand file tree Collapse file tree 1 file changed +15
-29
lines changed Expand file tree Collapse file tree 1 file changed +15
-29
lines changed Original file line number Diff line number Diff line change @@ -84,31 +84,23 @@ as it occurs. The printed change event resembles the
84
84
following:
85
85
86
86
.. code-block:: json
87
- :emphasize-lines: 14-20
88
87
89
88
{
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": []
112
104
}
113
105
}
114
106
@@ -177,9 +169,6 @@ of ``watch()``:
177
169
* - ``comment()``
178
170
- | Specifies a comment to attach to the operation.
179
171
180
- * - ``forEach()``
181
- - | Performs the given action on each element and safely closes the cursor.
182
-
183
172
* - ``fullDocument()``
184
173
- | Sets the ``fullDocument`` value. To learn more, see the
185
174
:ref:`<kotlin-sync-change-stream-pre-post-image>` section of this document.
@@ -192,9 +181,6 @@ of ``watch()``:
192
181
- | Sets the maximum await execution time on the server for this operation, in
193
182
milliseconds.
194
183
195
- * - ``toCollection()``
196
- - | Inserts all elements into the given destination collection.
197
-
198
184
For a complete list of methods you can use to configure the ``watch()`` method, see
199
185
the `ChangeStreamIterable <{+api+}/com.mongodb.kotlin.client/-change-stream-iterable/index.html>`__
200
186
API documentation.
You can’t perform that action at this time.
0 commit comments