Function: DataSource()
DataSource(
name,required?): (target,propertyKey) =>void
Defined in: service-core/src/decorators/DatabaseDecorators.ts:55
Apply this to a property to have the datasource connection with the given name injected at instantiation.
Parameters
name
string
The name of the datasource or class type.
required?
boolean = true
Set to true to indicate this injection must resolve, otherwise set to false. Default is true.
Returns
(target, propertyKey) => void