Context

A context used to share resources, such as transaction manager, between the application and the module.

Type parameters#

TManagerobjectOptional
__type"MedusaContext"Optional
transactionManagerTManagerOptional
An instance of a transaction manager of type TManager, which is a typed parameter passed to the context to specify the type of the transactionManager.
managerTManagerOptional
An instance of a manager, typically an entity manager, of type TManager, which is a typed parameter passed to the context to specify the type of the manager.
isolationLevelstringOptional
A string indicating the isolation level of the context. Possible values are READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, or SERIALIZABLE.
enableNestedTransactionsbooleanOptional
A boolean value indicating whether nested transactions are enabled.
eventGroupIdstringOptional
A string indicating the ID of the group to aggregate the events to be emitted at a later point.
transactionIdstringOptional
A string indicating the ID of the current transaction.
messageAggregatorIMessageAggregatorOptional
An instance of a message aggregator, which is used to aggregate messages to be emitted at a later point.
requestIdstringOptional
A string indicating the ID of the current request.
idempotencyKeystringOptional
A string indicating the idempotencyKey of the current workflow execution.
parentStepIdempotencyKeystringOptional
A string indicating the idempotencyKey of the parent workflow execution.
Was this page helpful?
Edit this page