API Reference
Rockets Core API
nestjs-org
classes
OrgMutateService

Class: OrgMutateService

Org mutate service

Extends

Implements

Constructors

new OrgMutateService()

new OrgMutateService(repo): OrgMutateService

Constructor

Parameters

ParameterTypeDescription
repoRepository<OrgEntityInterface>instance of the org repo

Returns

OrgMutateService

Overrides

MutateService.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueOverrides
createDtoprotectedtypeof OrgCreateDtoOrgCreateDtoMutateService.createDto
updateDtoprotectedtypeof OrgUpdateDtoOrgUpdateDtoMutateService.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<OrgEntityInterface>

Create one

Parameters

ParameterTypeDescription
dataOrgCreatableInterfacethe reference to create
queryOptions?QueryOptionsInterface-

Returns

Promise<OrgEntityInterface>

the created reference

Implementation of

OrgMutateServiceInterface.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<OrgEntityInterface[]>>

Find wrapper.

Parameters

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

Returns

Promise<Promise<OrgEntityInterface[]>>

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<OrgEntityInterface>

Internal

Parameters

ParameterType
idstring
queryOptions?QueryOptionsInterface

Returns

Promise<OrgEntityInterface>

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 | OrgEntityInterface>

Find One wrapper.

Parameters

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

Returns

Promise<null | OrgEntityInterface>

Inherited from

MutateService.findOne

Defined in

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


remove()

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

Remove one

Parameters

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

Returns

Promise<OrgEntityInterface>

the removed reference

Implementation of

OrgMutateServiceInterface.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<OrgEntityInterface>

Replace one

Parameters

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

Returns

Promise<OrgEntityInterface>

the replaced reference

Implementation of

OrgMutateServiceInterface.replace

Inherited from

MutateService.replace

Defined in

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


repository()

repository(queryOptions?): Repository<OrgEntityInterface>

Return the correct repository instance.

Parameters

ParameterTypeDescription
queryOptions?QueryOptionsInterfaceOptions

Returns

Repository<OrgEntityInterface>

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<OrgEntityInterface>>

Internal

Parameters

ParameterType
dataDeepPartial<OrgEntityInterface>
_queryOptions?QueryOptionsInterface

Returns

Promise<DeepPartial<OrgEntityInterface>>

Inherited from

MutateService.transform

Defined in

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


update()

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

Update one

Parameters

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

Returns

Promise<OrgEntityInterface>

the updated reference

Implementation of

OrgMutateServiceInterface.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<OrgEntityInterface>

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