Class: RoleMutateService
Role mutate service
Extends
Implements
Constructors
new RoleMutateService()
new RoleMutateService(
repo
):RoleMutateService
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-mutate.service.ts:35 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Overrides |
---|---|---|---|---|
createDto | protected | typeof RoleCreateDto | RoleCreateDto | MutateService .createDto |
updateDto | protected | typeof RoleUpdateDto | RoleUpdateDto | MutateService .updateDto |
Accessors
metadata
get
protected
metadata():EntityMetadata
Internal
Returns
EntityMetadata
Inherited from
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
Parameter | Type | Description |
---|---|---|
data | RoleCreatableInterface | the reference to create |
queryOptions ? | QueryOptionsInterface | - |
Returns
Promise
<RoleEntityInterface
>
the created reference
Implementation of
RoleMutateServiceInterface
.create
Inherited from
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
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
findById()
protected
findById(id
,queryOptions
?):Promise
<RoleEntityInterface
>
Internal
Parameters
Parameter | Type |
---|---|
id | string |
queryOptions ? | QueryOptionsInterface |
Returns
Promise
<RoleEntityInterface
>
Inherited from
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
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
remove()
remove(
data
,queryOptions
?):Promise
<RoleEntityInterface
>
Remove one
Parameters
Parameter | Type | Description |
---|---|---|
data | DeepPartial <RoleEntityInterface > & ReferenceIdInterface <string > | the reference data to remove |
queryOptions ? | QueryOptionsInterface | query options |
Returns
Promise
<RoleEntityInterface
>
the removed reference
Implementation of
RoleMutateServiceInterface
.remove
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:12
replace()
replace(
data
,queryOptions
?):Promise
<RoleEntityInterface
>
Replace one
Parameters
Parameter | Type | Description |
---|---|---|
data | RoleCreatableInterface & ReferenceIdInterface <string > | the reference data to replace |
queryOptions ? | QueryOptionsInterface | - |
Returns
Promise
<RoleEntityInterface
>
the replaced reference
Implementation of
RoleMutateServiceInterface
.replace
Inherited from
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
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
transform()
protected
transform(data
,_queryOptions
?):Promise
<DeepPartial
<RoleEntityInterface
>>
Internal
Parameters
Parameter | Type |
---|---|
data | DeepPartial <RoleEntityInterface > |
_queryOptions ? | QueryOptionsInterface |
Returns
Promise
<DeepPartial
<RoleEntityInterface
>>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:16
update()
update(
data
,queryOptions
?):Promise
<RoleEntityInterface
>
Update one
Parameters
Parameter | Type | Description |
---|---|---|
data | RoleUpdatableInterface & ReferenceIdInterface <string > | the reference data to update |
queryOptions ? | QueryOptionsInterface | - |
Returns
Promise
<RoleEntityInterface
>
the updated reference
Implementation of
RoleMutateServiceInterface
.update
Inherited from
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
Parameter | Type |
---|---|
type | Type <T > |
data | T |
Returns
Promise
<T
>
Inherited from
Defined in
.tmp/repos/rockets/packages/typeorm-common/dist/services/mutate.service.d.ts:15