@dnax/core 0.65.0 → 0.65.2

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.
@@ -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,10 @@ class useRest {
1186
1189
  },
1187
1190
  },
1188
1191
  {
1192
+ upsert: options?.upsert ?? false,
1193
+ arrayFilters: options?.arrayFilters
1194
+ ? toBson(options?.arrayFilters)
1195
+ : [],
1189
1196
  returnDocument: "after",
1190
1197
  session: this.#session ? this.#session : undefined,
1191
1198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.65.0",
3
+ "version": "0.65.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {