BaseRepositoryService
admin/discounts.internal.BaseRepositoryService
Data access layer (DAL) interface to implements for any repository service. This layer helps to separate the business logic (service layer) from accessing the ORM directly and allows to switch to another ORM without changing the business logic.
Type parameters
T
objectRequiredMethods
getActiveManager
getActiveManager<TManager
>(): TManager
TManager
objectRequiredReturns
TManager
getFreshManager
getFreshManager<TManager
>(): TManager
TManager
objectRequiredReturns
TManager
serialize
serialize<TOutput
>(data
, options?
): Promise
<TOutput
>
TOutput
object | object[]RequiredParameters
data
anyRequiredoptions
anyReturns
Promise
<TOutput
>
Promise
Promise<TOutput>Requiredtransaction
transaction<TManager
>(task
, context?
): Promise
<any
>
TManager
objectRequiredParameters
task
(transactionManager: TManager) => Promise<any>Requiredcontext
objectcontext.enableNestedTransactions
booleancontext.isolationLevel
stringcontext.transaction
TManagerReturns
Promise
<any
>
Promise
Promise<any>Required
Promise
Promise<any>RequiredWas this section helpful?