- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Context
A context used to share resources, such as transaction manager, between the application and the module.
Type parameters#
TManager
objectOptionalProperties#
__type
"MedusaContext"OptionaltransactionManager
TManagerOptionalAn 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
TManagerOptionalAn 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
stringOptionalA string indicating the isolation level of the context. Possible values are
READ UNCOMMITTED
, READ COMMITTED
, REPEATABLE READ
, or SERIALIZABLE
.enableNestedTransactions
booleanOptionalA boolean value indicating whether nested transactions are enabled.
eventGroupId
stringOptionalA string indicating the ID of the group to aggregate the events to be emitted at a later point.
transactionId
stringOptionalA string indicating the ID of the current transaction.
An instance of a message aggregator, which is used to aggregate messages to be emitted at a later point.
requestId
stringOptionalA string indicating the ID of the current request.
idempotencyKey
stringOptionalA string indicating the idempotencyKey of the current workflow execution.
parentStepIdempotencyKey
stringOptionalA string indicating the idempotencyKey of the parent workflow execution.
Was this page helpful?