Class: RoleLookupService
Role lookup service
Extends
Implements
Constructors
new RoleLookupService()
new RoleLookupService(
repo):RoleLookupService
Constructor
Parameters
| Parameter | Type | Description |
|---|---|---|
repo | Repository<RoleEntityInterface> | instance of the role repo |
Returns
Overrides
Defined in
.tmp/repos/rockets/packages/nestjs-role/src/services/role-lookup.service.ts:22 (opens in a new tab)
Accessors
metadata
getprotectedmetadata():EntityMetadata
Internal
Returns
EntityMetadata
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:14
Methods
byId()
byId(
id,queryOptions?):Promise<null|RoleEntityInterface>
Get entity for the given id.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | the id |
queryOptions? | QueryOptionsInterface | query options |
Returns
Promise<null | RoleEntityInterface>
Implementation of
RoleLookupServiceInterface.byId
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/lookup.service.d.ts:7
find()
find(
options,queryOptions?):Promise<Promise<RoleEntityInterface[]>>
Find wrapper.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | FindManyOptions<RoleEntityInterface> | Find many options |
queryOptions? | QueryOptionsInterface | Query options |
Returns
Promise<Promise<RoleEntityInterface[]>>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:10
findOne()
findOne(
options,queryOptions?):Promise<null|RoleEntityInterface>
Find One wrapper.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | FindOneOptions<RoleEntityInterface> | Find one options |
queryOptions? | QueryOptionsInterface | Query options |
Returns
Promise<null | RoleEntityInterface>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:11
repository()
repository(
queryOptions?):Repository<RoleEntityInterface>
Return the correct repository instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
queryOptions? | QueryOptionsInterface | Options |
Returns
Repository<RoleEntityInterface>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:12
transaction()
transaction(
options?):TransactionProxy
Return a transaction instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | SafeTransactionOptionsInterface | Options |
Returns
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:13