Type alias MiddlewareContext<T>
Middleware
Context
<T>: { dao
: DAO<T>; daoDriver
: DriverType; daoName
: T["entity"]; driver
: T["driverContext"]; entityManager
: T["entityManager"]; idField
: T["idFields"]; logger
?: LogFunction<T["entity"]>; metadata
?: T["metadata"]; schema
: Schema<T["scalars"]>; specificOperation
: "findAll" | "findOne" | "insertAll" | "updateOne" | "updateAll" | "replaceOne" | "replaceAll" | "deleteOne" | "deleteAll" | "aggregate" | "count" | "exists" | "findPage"; }
Type declaration
-
dao: DAO<T>
-
-
daoName: T["entity"]
-
driver: T["driverContext"]
-
entityManager: T["entityManager"]
-
idField: T["idFields"]
-
Optional
logger?: LogFunction<T["entity"]>
-
Optional
metadata?: T["metadata"]
-
schema: Schema<T["scalars"]>
-
specificOperation: "findAll" | "findOne" | "insertAll" | "updateOne" | "updateAll" | "replaceOne" | "replaceAll" | "deleteOne" | "deleteAll" | "aggregate" | "count" | "exists" | "findPage"