@@ -59,9 +59,7 @@ Definition
59
59
- Description
60
60
61
61
* - ``resumeAfter``
62
-
63
62
- document
64
-
65
63
- Optional. Directs :method:`~db.collection.watch` to attempt resuming
66
64
notifications starting after the operation specified in the resume
67
65
token.
@@ -78,7 +76,6 @@ Definition
78
76
* - ``startAfter``
79
77
80
78
- document
81
-
82
79
- Optional. Directs :method:`~db.collection.watch` to attempt starting a new
83
80
change stream after the operation specified in the resume token.
84
81
Allows notifications to resume after an invalidate event.
@@ -97,7 +94,6 @@ Definition
97
94
* - ``fullDocument``
98
95
99
96
- string
100
-
101
97
- Optional. By default, :method:`~db.collection.watch()` returns the delta of
102
98
those fields modified by an update operation, instead of the entire
103
99
updated document.
@@ -112,6 +108,7 @@ Definition
112
108
113
109
114
110
* - ``fullDocumentBeforeChange``
111
+
115
112
- string
116
113
- Optional.
117
114
@@ -121,7 +118,6 @@ Definition
121
118
* - ``batchSize``
122
119
123
120
- int
124
-
125
121
- Optional. Specifies the maximum number of change events to return in each
126
122
batch of the response from the MongoDB cluster.
127
123
@@ -132,7 +128,6 @@ Definition
132
128
* - ``maxAwaitTimeMS``
133
129
134
130
- int
135
-
136
131
- Optional. The maximum amount of time in milliseconds the server waits for new
137
132
data changes to report to the change stream cursor before returning an
138
133
empty batch.
@@ -144,7 +139,6 @@ Definition
144
139
* - ``collation``
145
140
146
141
- document
147
-
148
142
- Optional. Pass a :ref:`collation document <collation-document-fields>`
149
143
to specify a collation for the change stream cursor.
150
144
@@ -153,11 +147,22 @@ Definition
153
147
collection would inherit the collection's default collation.
154
148
155
149
156
-
150
+ * - ``showExpandedEvents``
151
+
152
+ - boolean
153
+ - Optional. Starting in MongoDB 6.0, change streams support change
154
+ notifications for DDL events, like the :ref:`createIndexes <change-event-createIndexes>`
155
+ and :ref:`dropIndexes <change-event-dropIndexes>` events. To include
156
+ expanded events in a change stream, create the change stream cursor
157
+ using the ``showExpandedEvents`` option.
158
+
159
+ .. versionadded:: 6.0
160
+
161
+
162
+
157
163
* - ``startAtOperationTime``
158
164
159
165
- Timestamp
160
-
161
166
- Optional. The starting point for the change stream. If the specified starting
162
167
point is in the past, it must be in the time range of the oplog. To
163
168
check the time range of the oplog, see
0 commit comments