File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -496,6 +496,25 @@ export interface UpdateDescription<TSchema extends Document = Document> {
496
496
/** The number of elements in the truncated array. */
497
497
newSize : number ;
498
498
} > ;
499
+
500
+ /**
501
+ * A document containing additional information about any ambiguous update paths from the update event. The document
502
+ * maps the full ambiguous update path to an array containing the actual resolved components of the path. For example,
503
+ * given a document shaped like `{ a: { '0': 0 } }`, and an update of `{ $inc: 'a.0' }`, disambiguated paths would look like
504
+ * the following:
505
+ *
506
+ * ```
507
+ * {
508
+ * 'a.0': ['a', '0']
509
+ * }
510
+ * ```
511
+ *
512
+ * This field is only present when there are ambiguous paths are updated as a part of the update event and `showExpandedEvents`
513
+ * is enabled for the change stream.
514
+ * @since 6.1.0
515
+ * @experimental
516
+ */
517
+ disambiguatedPaths ?: Document ;
499
518
}
500
519
501
520
/** @public */
You can’t perform that action at this time.
0 commit comments