File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ export interface FindOneAndDeleteOptions extends CommandOperationOptions {
29
29
sort ?: Sort ;
30
30
/** Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0). */
31
31
let ?: Document ;
32
- /** Return the raw result document instead of the ModifyResult */
32
+ /**
33
+ * Return the ModifyResult instead of the modified document. Defaults to true
34
+ * but will default to false in the next major version.
35
+ */
33
36
includeResultMetadata ?: boolean ;
34
37
}
35
38
@@ -49,7 +52,10 @@ export interface FindOneAndReplaceOptions extends CommandOperationOptions {
49
52
upsert ?: boolean ;
50
53
/** Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0). */
51
54
let ?: Document ;
52
- /** Return the raw result document instead of the ModifyResult */
55
+ /**
56
+ * Return the ModifyResult instead of the modified document. Defaults to true
57
+ * but will default to false in the next major version.
58
+ */
53
59
includeResultMetadata ?: boolean ;
54
60
}
55
61
@@ -71,7 +77,10 @@ export interface FindOneAndUpdateOptions extends CommandOperationOptions {
71
77
upsert ?: boolean ;
72
78
/** Map of parameter names and values that can be accessed using $$var (requires MongoDB 5.0). */
73
79
let ?: Document ;
74
- /** Return the raw result document instead of the ModifyResult */
80
+ /**
81
+ * Return the ModifyResult instead of the modified document. Defaults to true
82
+ * but will default to false in the next major version.
83
+ */
75
84
includeResultMetadata ?: boolean ;
76
85
}
77
86
You can’t perform that action at this time.
0 commit comments