Skip to main content
Skip to main content

InternalModuleService

Type parameters

TEntityobjectRequired
TContainerobjectRequired

Accessors

__container__

Returns

TContainerTContainerRequired

Methods

retrieve

**retrieve**(idOrObject, config?, sharedContext?): Promise<TEntity>

Parameters

idOrObjectstringRequired
configFindConfig<any>
sharedContextContext

Returns

PromisePromise<TEntity>Required

**retrieve**(idOrObject, config?, sharedContext?): Promise&#60;TEntity&#62;

Parameters

idOrObjectobjectRequired
configFindConfig<any>
sharedContextContext

Returns

PromisePromise<TEntity>Required

list

Parameters

filtersobject | BaseFilterable<object>
configFindConfig<any>
sharedContextContext

Returns

PromisePromise<TEntity[]>Required

listAndCount

Parameters

filtersobject | BaseFilterable<object>
configFindConfig<any>
sharedContextContext

Returns

PromisePromise<[TEntity[], number]>Required

create

**create**(data, sharedContext?): Promise&#60;TEntity[]&#62;

Parameters

dataany[]Required
sharedContextContext

Returns

PromisePromise<TEntity[]>Required

**create**(data, sharedContext?): Promise&#60;TEntity&#62;

Parameters

dataanyRequired
sharedContextContext

Returns

PromisePromise<TEntity>Required

update

**update**(data, sharedContext?): Promise&#60;TEntity[]&#62;

Parameters

dataany[]Required
sharedContextContext

Returns

PromisePromise<TEntity[]>Required

**update**(data, sharedContext?): Promise&#60;TEntity&#62;

Parameters

dataanyRequired
sharedContextContext

Returns

PromisePromise<TEntity>Required

**update**(selectorAndData, sharedContext?): Promise&#60;TEntity[]&#62;

Parameters

selectorAndDataobjectRequired
selectorAndData.selectorobject | BaseFilterable<object>Required
selectorAndData.dataanyRequired
sharedContextContext

Returns

PromisePromise<TEntity[]>Required

**update**(selectorAndData, sharedContext?): Promise&#60;TEntity[]&#62;

Parameters

selectorAndDataobject[]Required
sharedContextContext

Returns

PromisePromise<TEntity[]>Required

delete

**delete**(idOrSelector, sharedContext?): Promise&#60;void&#62;

Parameters

idOrSelectorstringRequired
sharedContextContext

Returns

PromisePromise<void>Required

**delete**(idOrSelector, sharedContext?): Promise&#60;void&#62;

Parameters

idOrSelectorstring[]Required
sharedContextContext

Returns

PromisePromise<void>Required

**delete**(idOrSelector, sharedContext?): Promise&#60;void&#62;

Parameters

idOrSelectorobjectRequired
sharedContextContext

Returns

PromisePromise<void>Required

**delete**(idOrSelector, sharedContext?): Promise&#60;void&#62;

Parameters

idOrSelectorobject[]Required
sharedContextContext

Returns

PromisePromise<void>Required

**delete**(idOrSelector, sharedContext?): Promise&#60;void&#62;

Parameters

idOrSelectorobjectRequired
idOrSelector.selectorobject | BaseFilterable<object>Required
sharedContextContext

Returns

PromisePromise<void>Required

softDelete

Parameters

idsOrFilterstring[] | objectRequired
sharedContextContext

Returns

PromisePromise<[TEntity[], Record<string, unknown[]>]>Required

restore

Parameters

idsOrFilterstring[] | objectRequired
sharedContextContext

Returns

PromisePromise<[TEntity[], Record<string, unknown[]>]>Required

upsert

**upsert**(data, sharedContext?): Promise&#60;TEntity[]&#62;

Parameters

dataany[]Required
sharedContextContext

Returns

PromisePromise<TEntity[]>Required

**upsert**(data, sharedContext?): Promise&#60;TEntity&#62;

Parameters

dataanyRequired
sharedContextContext

Returns

PromisePromise<TEntity>Required
Was this section helpful?