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
|
Returns
Function | string
The Entity | Repository injection token