InternalModuleService
Type parameters
TEntity
objectRequiredTContainer
objectRequiredAccessors
__container__
Returns
TContainer
TContainerRequiredMethods
retrieve
**retrieve**(idOrObject, config?, sharedContext?): Promise<TEntity>
Parameters
idOrObject
stringRequiredconfig
FindConfig<any>
config
FindConfig<any>Returns
Promise
Promise<TEntity>Required
Promise
Promise<TEntity>Required**retrieve**(idOrObject, config?, sharedContext?): Promise<TEntity>
Parameters
idOrObject
objectRequiredconfig
FindConfig<any>
config
FindConfig<any>Returns
Promise
Promise<TEntity>Required
Promise
Promise<TEntity>Requiredlist
Parameters
filters
object | BaseFilterable<object>config
FindConfig<any>
config
FindConfig<any>Returns
Promise
Promise<TEntity[]>Required
Promise
Promise<TEntity[]>RequiredlistAndCount
Parameters
filters
object | BaseFilterable<object>config
FindConfig<any>
config
FindConfig<any>Returns
Promise
Promise<[TEntity[], number]>Required
Promise
Promise<[TEntity[], number]>Requiredcreate
**create**(data, sharedContext?): Promise<TEntity[]>
Parameters
data
any[]RequiredReturns
Promise
Promise<TEntity[]>Required
Promise
Promise<TEntity[]>Required**create**(data, sharedContext?): Promise<TEntity>
Parameters
data
anyRequiredReturns
Promise
Promise<TEntity>Required
Promise
Promise<TEntity>Requiredupdate
**update**(data, sharedContext?): Promise<TEntity[]>
Parameters
data
any[]RequiredReturns
Promise
Promise<TEntity[]>Required
Promise
Promise<TEntity[]>Required**update**(data, sharedContext?): Promise<TEntity>
Parameters
data
anyRequiredReturns
Promise
Promise<TEntity>Required
Promise
Promise<TEntity>Required**update**(selectorAndData, sharedContext?): Promise<TEntity[]>
Parameters
selectorAndData
objectRequired
selectorAndData
objectRequiredselectorAndData.data
anyRequiredReturns
Promise
Promise<TEntity[]>Required
Promise
Promise<TEntity[]>Required**update**(selectorAndData, sharedContext?): Promise<TEntity[]>
Parameters
selectorAndData
object[]Required
selectorAndData
object[]RequiredReturns
Promise
Promise<TEntity[]>Required
Promise
Promise<TEntity[]>Requireddelete
**delete**(idOrSelector, sharedContext?): Promise<void>
Parameters
idOrSelector
stringRequiredReturns
Promise
Promise<void>Required**delete**(idOrSelector, sharedContext?): Promise<void>
Parameters
idOrSelector
string[]RequiredReturns
Promise
Promise<void>Required**delete**(idOrSelector, sharedContext?): Promise<void>
Parameters
idOrSelector
objectRequiredReturns
Promise
Promise<void>Required**delete**(idOrSelector, sharedContext?): Promise<void>
Parameters
idOrSelector
object[]RequiredReturns
Promise
Promise<void>Required**delete**(idOrSelector, sharedContext?): Promise<void>
Parameters
idOrSelector
objectRequired
idOrSelector
objectRequiredReturns
Promise
Promise<void>RequiredsoftDelete
Parameters
idsOrFilter
string[] | objectRequiredReturns
Promise
Promise<[TEntity[], Record<string, unknown[]>]>Required
Promise
Promise<[TEntity[], Record<string, unknown[]>]>Requiredrestore
Parameters
idsOrFilter
string[] | objectRequiredReturns
Promise
Promise<[TEntity[], Record<string, unknown[]>]>Required
Promise
Promise<[TEntity[], Record<string, unknown[]>]>Requiredupsert
**upsert**(data, sharedContext?): Promise<TEntity[]>
Parameters
data
any[]RequiredReturns
Promise
Promise<TEntity[]>Required
Promise
Promise<TEntity[]>Required**upsert**(data, sharedContext?): Promise<TEntity>
Parameters
data
anyRequiredReturns
Promise
Promise<TEntity>Required
Promise
Promise<TEntity>Required