Context
A context used to share resources, such as transaction manager, between the application and the module.
Type parameters
TManagerobjectRequired__type"MedusaContext"transactionManagerTManagerAn instance of a transaction manager of type
TManager, which is a typed parameter passed to the context to specify the type of the transactionManager.managerTManagerAn 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.isolationLevelstringA string indicating the isolation level of the context. Possible values are
READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, or SERIALIZABLE.enableNestedTransactionsbooleanA boolean value indicating whether nested transactions are enabled.
eventGroupIdstringA string indicating the ID of the group to aggregate the events to be emitted at a later point.
transactionIdstringA string indicating the ID of the current transaction.
messageAggregatorIMessageAggregatorAn instance of a message aggregator, which is used to aggregate messages to be emitted at a later point.
requestIdstringA string indicating the ID of the current request.
idempotencyKeystringA string indicating the idempotencyKey of the current workflow execution.
Was this section helpful?