Function: Repository()
Repository(
type,required?): (target,propertyKey) =>void
Defined in: service-core/src/decorators/DatabaseDecorators.ts:101
Apply this to a property to have the datasource repository for the given entity type injected at instantiation.
Parameters
type
any
The entity type whose repository will be injected.
required?
boolean = true
Set to true to indicate this injection must resolve, otherwise set to false. Default is true.
Returns
(target, propertyKey) => void