API Reference
Rockets Core API
nestjs-role
classes
RoleMutateService

Class: RoleMutateService

Role mutate service

Extends

Implements

Constructors

new RoleMutateService()

new RoleMutateService(repo): RoleMutateService

Constructor

Parameters

ParameterTypeDescription
repoRepository<RoleEntityInterface>instance of the role repo

Returns

RoleMutateService

Overrides

MutateService.constructor

Defined in

.tmp/repos/rockets/packages/nestjs-role/src/services/role-mutate.service.ts:35 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueOverrides
createDtoprotectedtypeof RoleCreateDtoRoleCreateDtoMutateService.createDto
updateDtoprotectedtypeof RoleUpdateDtoRoleUpdateDtoMutateService.updateDto

Accessors

metadata

get protected metadata(): EntityMetadata

Internal

Returns

EntityMetadata

Inherited from

MutateService.metadata

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:14

Methods

create()

create(data, queryOptions?): Promise<RoleEntityInterface>

Create one

Parameters

ParameterTypeDescription
dataRoleCreatableInterfacethe reference to create
queryOptions?QueryOptionsInterface-

Returns

Promise<RoleEntityInterface>

the created reference

Implementation of

RoleMutateServiceInterface.create

Inherited from

MutateService.create

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:9


find()

find(options, queryOptions?): Promise<Promise<RoleEntityInterface[]>>

Find wrapper.

Parameters

ParameterTypeDescription
optionsFindManyOptions<RoleEntityInterface>Find many options
queryOptions?QueryOptionsInterfaceQuery options

Returns

Promise<Promise<RoleEntityInterface[]>>

Inherited from

MutateService.find

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:10


findById()

protected findById(id, queryOptions?): Promise<RoleEntityInterface>

Internal

Parameters

ParameterType
idstring
queryOptions?QueryOptionsInterface

Returns

Promise<RoleEntityInterface>

Inherited from

MutateService.findById

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:17


findOne()

findOne(options, queryOptions?): Promise<null | RoleEntityInterface>

Find One wrapper.

Parameters

ParameterTypeDescription
optionsFindOneOptions<RoleEntityInterface>Find one options
queryOptions?QueryOptionsInterfaceQuery options

Returns

Promise<null | RoleEntityInterface>

Inherited from

MutateService.findOne

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:11


remove()

remove(data, queryOptions?): Promise<RoleEntityInterface>

Remove one

Parameters

ParameterTypeDescription
dataDeepPartial<RoleEntityInterface> & ReferenceIdInterface<string>the reference data to remove
queryOptions?QueryOptionsInterfacequery options

Returns

Promise<RoleEntityInterface>

the removed reference

Implementation of

RoleMutateServiceInterface.remove

Inherited from

MutateService.remove

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:12


replace()

replace(data, queryOptions?): Promise<RoleEntityInterface>

Replace one

Parameters

ParameterTypeDescription
dataRoleCreatableInterface & ReferenceIdInterface<string>the reference data to replace
queryOptions?QueryOptionsInterface-

Returns

Promise<RoleEntityInterface>

the replaced reference

Implementation of

RoleMutateServiceInterface.replace

Inherited from

MutateService.replace

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:11


repository()

repository(queryOptions?): Repository<RoleEntityInterface>

Return the correct repository instance.

Parameters

ParameterTypeDescription
queryOptions?QueryOptionsInterfaceOptions

Returns

Repository<RoleEntityInterface>

Inherited from

MutateService.repository

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:12


transaction()

transaction(options?): TransactionProxy

Return a transaction instance.

Parameters

ParameterTypeDescription
options?SafeTransactionOptionsInterfaceOptions

Returns

TransactionProxy

Inherited from

MutateService.transaction

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:13


transform()

protected transform(data, _queryOptions?): Promise<DeepPartial<RoleEntityInterface>>

Internal

Parameters

ParameterType
dataDeepPartial<RoleEntityInterface>
_queryOptions?QueryOptionsInterface

Returns

Promise<DeepPartial<RoleEntityInterface>>

Inherited from

MutateService.transform

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:16


update()

update(data, queryOptions?): Promise<RoleEntityInterface>

Update one

Parameters

ParameterTypeDescription
dataRoleUpdatableInterface & ReferenceIdInterface<string>the reference data to update
queryOptions?QueryOptionsInterface-

Returns

Promise<RoleEntityInterface>

the updated reference

Implementation of

RoleMutateServiceInterface.update

Inherited from

MutateService.update

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:10


validate()

protected validate<T>(type, data): Promise<T>

Internal

Type Parameters

Type Parameter
T extends DeepPartial<RoleEntityInterface>

Parameters

ParameterType
typeType<T>
dataT

Returns

Promise<T>

Inherited from

MutateService.validate

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:15