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
/** An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.*/
16
+
hint?: Document;
24
17
/** Limits the fields to return for all matching documents. */
25
18
projection?: Document;
26
-
/** @deprecated use `projection` instead */
27
-
fields?: Document;
28
19
/** Determines which document the operation modifies if the query selects multiple documents. */
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
26
+
bypassDocumentValidation?: boolean;
27
+
/** An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.*/
28
+
hint?: Document;
29
+
/** Limits the fields to return for all matching documents. */
30
+
projection?: Document;
31
+
/** When false, returns the updated document rather than the original. The default is true. */
32
+
returnOriginal?: boolean;
33
+
/** Determines which document the operation modifies if the query selects multiple documents. */
/** Optional list of array filters referenced in filtered positional operators */
31
42
arrayFilters?: Document[];
32
43
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
33
44
bypassDocumentValidation?: boolean;
34
45
/** An optional hint for query optimization. See the {@link https://docs.mongodb.com/manual/reference/command/update/#update-command-hint|update command} reference for more information.*/
35
46
hint?: Document;
47
+
/** Limits the fields to return for all matching documents. */
48
+
projection?: Document;
49
+
/** When false, returns the updated document rather than the original. The default is true. */
50
+
returnOriginal?: boolean;
51
+
/** Determines which document the operation modifies if the query selects multiple documents. */
52
+
sort?: Sort;
53
+
/** Upsert the document if it does not exist. */
54
+
upsert?: boolean;
55
+
}
56
+
57
+
// TODO: NODE-1812 to deprecate returnOriginal for returnDocument
58
+
59
+
/** @internal */
60
+
interfaceFindAndModifyCmdBase{
61
+
remove: boolean;
62
+
new: boolean;
63
+
upsert: boolean;
64
+
update?: Document;
65
+
sort?: SortForCmd;
66
+
fields?: Document;
67
+
bypassDocumentValidation?: boolean;
68
+
arrayFilters?: Document[];
69
+
maxTimeMS?: number;
70
+
writeConcern?: WriteConcern|WriteConcernSettings;
71
+
}
36
72
37
-
// NOTE: These types are a misuse of options, can we think of a way to remove them?
0 commit comments