Skip to main content

Function: InjectDbContext()

InjectDbContext<TContext>(contextClass): (target, propertyKey, parameterIndex) => any

Defined in: src/di/nestjs/InjectDbContext.ts:12

Parameter decorator for injecting DbContext into NestJS constructors.

Type Parameters​

Type Parameter
TContext extends DbContext

Parameters​

ParameterType
contextClass(...args) => TContext

Returns​

(target, propertyKey, parameterIndex) => any