Context
A context used to share resources, such as transaction manager, between the application and the module.
Type parameters
TManager
objectRequired__type
"MedusaContext"transactionManager
TManagerAn instance of a transaction manager of type
TManager
, which is a typed parameter passed to the context to specify the type of the transactionManager
.manager
TManagerAn 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
.isolationLevel
stringA string indicating the isolation level of the context. Possible values are
READ UNCOMMITTED
, READ COMMITTED
, REPEATABLE READ
, or SERIALIZABLE
.enableNestedTransactions
booleanA boolean value indicating whether nested transactions are enabled.
eventGroupId
stringA string indicating the ID of the group to aggregate the events to be emitted at a later point.
transactionId
stringA string indicating the ID of the current transaction.
messageAggregator
IMessageAggregatorAn instance of a message aggregator, which is used to aggregate messages to be emitted at a later point.
requestId
stringA string indicating the ID of the current request.
Was this section helpful?