@dnax/core 0.65.0 → 0.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/driver/mongo/rest.ts +6 -1
- package/package.json +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -1063,7 +1063,10 @@ class useRest {
|
|
|
1063
1063
|
collection: string,
|
|
1064
1064
|
id: string,
|
|
1065
1065
|
update: updateParams,
|
|
1066
|
-
options?: Omit<optionCb, "withMeta" | "elementAt" | "withMeta">
|
|
1066
|
+
options?: Omit<optionCb, "withMeta" | "elementAt" | "withMeta"> & {
|
|
1067
|
+
arrayFilters?: Array<object>;
|
|
1068
|
+
upsert?: boolean;
|
|
1069
|
+
}
|
|
1067
1070
|
): Promise<object> {
|
|
1068
1071
|
return new Promise(async (resolve, reject) => {
|
|
1069
1072
|
try {
|
|
@@ -1186,6 +1189,8 @@ class useRest {
|
|
|
1186
1189
|
},
|
|
1187
1190
|
},
|
|
1188
1191
|
{
|
|
1192
|
+
upsert: options?.upsert ?? false,
|
|
1193
|
+
arrayFilters: options?.arrayFilters,
|
|
1189
1194
|
returnDocument: "after",
|
|
1190
1195
|
session: this.#session ? this.#session : undefined,
|
|
1191
1196
|
}
|