@dnax/core 0.1.11 → 0.1.12
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 +2 -1
- package/package.json +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -171,7 +171,7 @@ class useRest {
|
|
|
171
171
|
|
|
172
172
|
result.docs = await this.#tenant.database.db
|
|
173
173
|
?.collection(collection)
|
|
174
|
-
.aggregate(pipeline, {
|
|
174
|
+
.aggregate(formatData(pipeline), {
|
|
175
175
|
allowDiskUse: true,
|
|
176
176
|
})
|
|
177
177
|
.toArray();
|
|
@@ -827,6 +827,7 @@ class useRest {
|
|
|
827
827
|
{
|
|
828
828
|
upsert: true,
|
|
829
829
|
returnDocument: "after",
|
|
830
|
+
|
|
830
831
|
session: this.#session ? this.#session : undefined,
|
|
831
832
|
}
|
|
832
833
|
);
|