getRepositoryToken


 getRepositoryToken(entity: any, dataSource: any = DEFAULT_DATA_SOURCE_NAME): Function | string

Parameters

Option Type Description
entity EntityClassOrSchema

parameter can either be an Entity or Repository

dataSource string

DataSource name


Optional. Default is `DEFAULT_DATA_SOURCE_NAME`.

Returns

Function | string The Entity | Repository injection token