- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Medusa and Module Container Resources
This documentation page includes the list of resources registered in the container of the Medusa application and modules.
Medusa Container Resources#
The following table has a list of all resources that you can resolve in your customizations outside a module (such as API routes or workflows).
ContainerRegistrationKeys
enum imported from @medusajs/framework/utils
where specified.Resource | Description | Registration Name |
---|---|---|
Configurations | The configurations that are exported from |
|
Logger | An instance of Medusa CLI’s logger. You can use it to log messages to the terminal. |
|
Query | Query to retrieve data across modules. |
|
Remote Link | The remote link function. |
|
Modules' main services | The main service of every module added in |
|
Module Container Resources#
The following table has a list of all resources that you can resolve in a module's services or loaders.
ContainerRegistrationKeys
enum imported from @medusajs/framework/utils
where specified.Resource | Description | Registration Name |
---|---|---|
Logger | An instance of Medusa CLI’s logger. You can use it to log messages to the terminal. |
|
Entity Manager | An instance of MikroORM's entity manager. |
|
Base Repository | An instance of the base repository, used to run transactions or perform other database operations. |
|
Configurations | The configurations exported from |
|
Modules' services | All services exported by the | Each service is registered by its camel-case name. For example, if the service's class name is |