Type alias MiddlewareContext<T>

MiddlewareContext<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 Parameters

Type declaration

  • dao: DAO<T>
  • daoDriver: DriverType
  • 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"

Generated using TypeDoc