You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Contains two fields: "db" and "coll" containing the database and
@@ -155,6 +169,16 @@ If an aggregate command with a ``$changeStream`` stage completes successfully, t
155
169
*/
156
170
to:Optional<Document>;
157
171
172
+
/**
173
+
* Only present for ops of type 'rename', 'create', 'modify', 'createIndexes', 'dropIndexes', 'shardCollection', 'reshardCollection', 'refineCollectionShardKey'.
174
+
* Only present when the `showExpandedEvents` change stream option is enabled.
175
+
*
176
+
* A description of the operation.
177
+
*
178
+
* @since 6.0.0
179
+
*/
180
+
operationDescription:Optional<Document>
181
+
158
182
/**
159
183
* Only present for ops of type ‘insert’, ‘update’, ‘replace’, and
160
184
* ‘delete’.
@@ -168,9 +192,6 @@ If an aggregate command with a ``$changeStream`` stage completes successfully, t
168
192
169
193
/**
170
194
* Only present for ops of type ‘update’.
171
-
*
172
-
* Contains a description of updated and removed fields in this
173
-
* operation.
174
195
*/
175
196
updateDescription:Optional<UpdateDescription>;
176
197
@@ -208,7 +229,29 @@ If an aggregate command with a ``$changeStream`` stage completes successfully, t
208
229
* The wall time from the mongod that the change event originated from.
209
230
* Populated for server versions 6.0 and above.
210
231
*/
211
-
wallTime:Optional<Datetime>;
232
+
wallTime:Optional<DateTime>;
233
+
234
+
/**
235
+
* The `ui` field from the oplog entry corresponding to the change event.
236
+
*
237
+
* Only present when the `showExpandedEvents` change stream option is enabled and for the following events
238
+
* - 'insert'
239
+
* - 'update'
240
+
* - 'delete'
241
+
* - 'createIndexes'
242
+
* - 'dropIndexes'
243
+
* - 'modify'
244
+
* - 'drop'
245
+
* - 'create'
246
+
* - 'shardCollection'
247
+
* - 'reshardCollection'
248
+
* - 'refineCollectionShardKey'
249
+
*
250
+
* This field is a value of binary subtype 4 (UUID).
251
+
*
252
+
* @since 6.0.0
253
+
*/
254
+
collectionUUID:Optional<Binary>;
212
255
}
213
256
214
257
classUpdateDescription {
@@ -496,6 +539,24 @@ Driver API
496
539
* @note this is an aggregation command option
497
540
*/
498
541
comment:Optional<any>
542
+
543
+
/**
544
+
* Enables the server to send the 'expanded' list of change stream events.
545
+
* The list of additional events included with this flag set are
546
+
* - createIndexes
547
+
* - dropIndexes
548
+
* - modify
549
+
* - create
550
+
* - shardCollection
551
+
* - reshardCollection
552
+
* - refineCollectionShardKey
553
+
*
554
+
* This flag is available in server versions greater than 6.0.0. `reshardCollection` and
555
+
* `refineCollectionShardKey` events are not available until server version 6.1.0.
556
+
*
557
+
* @note this is an option of the change stream pipeline stage
558
+
*/
559
+
showExpandedEvents:Optional<Boolean>
499
560
}
500
561
501
562
**NOTE:** The set of ``ChangeStreamOptions`` may grow over time.
0 commit comments