@dnax/core 0.69.12 → 0.69.13
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 +7 -0
- package/package.json +1 -1
- package/types/index.ts +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -254,6 +254,13 @@ class useRest {
|
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Check if the session is active
|
|
259
|
+
* @returns boolean
|
|
260
|
+
*/
|
|
261
|
+
hasSession() {
|
|
262
|
+
return this.#session ? true : false;
|
|
263
|
+
}
|
|
257
264
|
async aggregate(
|
|
258
265
|
collection: string,
|
|
259
266
|
pipeline: Array<object>,
|
package/package.json
CHANGED
package/types/index.ts
CHANGED
|
@@ -311,7 +311,7 @@ export type Collection = {
|
|
|
311
311
|
customApi?: {
|
|
312
312
|
aggregate?: (ctx: ctxApi) => Array<object> | null | undefined | typeof fn.error;
|
|
313
313
|
insertOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
|
|
314
|
-
insertMany?: (ctx: ctxApi) => Array<
|
|
314
|
+
insertMany?: (ctx: ctxApi) => Array<any> | null | undefined | typeof fn.error;
|
|
315
315
|
updateOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
|
|
316
316
|
updateMany?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
|
|
317
317
|
deleteOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
|