DAOParams
<T>: { awaitLog
?: boolean; cache
?: TypettaCache; datasource
: string | null; driverContext
: T["driverContext"]; entityManager
: AbstractEntityManager<string, string, T["scalars"], T["metadata"]>; idGenerator
?: (() => OmitNever<{ [ K in T["idFields"]]: K extends keyof T["insert"] ? T["insert"][K] : never }>); logger
?: LogFunction<T["entity"]>; metadata
?: T["metadata"]; middlewares
?: DAOMiddleware<T>[]; name
: T["entity"]; pageSize
?: number; schema
: Schema<T["scalars"]>; }
Type declaration
-
Optional
awaitLog?: boolean
-
-
datasource: string | null
-
driverContext: T["driverContext"]
-
entityManager: AbstractEntityManager<string, string, T["scalars"], T["metadata"]>
-
Optional
idGenerator?: (() => OmitNever<{ [ K in T["idFields"]]: K extends keyof T["insert"] ? T["insert"][K] : never }>)
-
- (): OmitNever<{ [ K in T["idFields"]]: K extends keyof T["insert"] ? T["insert"][K] : never }>
-
Returns OmitNever<{ [ K in T["idFields"]]: K extends keyof T["insert"] ? T["insert"][K] : never }>
-
Optional
logger?: LogFunction<T["entity"]>
-
Optional
metadata?: T["metadata"]
-
Optional
middlewares?: DAOMiddleware<T>[]
-
name: T["entity"]
-
Optional
pageSize?: number
-
schema: Schema<T["scalars"]>