Links between Store Module and Other Modules
This document showcases the module links defined between the Store Module and other Commerce Modules.
Summary#
The Store Module has the following links to other modules:
First Data Model | Second Data Model | Type | Description |
|---|---|---|---|
Read-only - has many | |||
Read-only - has many |
Currency Module#
The Store Module has a StoreCurrency data model that stores the supported currencies of a store. However, these currencies don't hold all the details of a currency, such as its name or symbol.
Instead, Medusa defines a read-only link from the Store Module's StoreCurrency data model to the Currency Module's Currency data model. This means you can retrieve the details of a store's supported currencies, but you don't manage the links in a pivot table in the database.
Retrieve with Query#
To retrieve the details of a store's currencies with Query, pass in :
Translation Module#
The Store Module has a StoreLocale data model that stores the supported locales of a store. However, these locales don't hold all the details of a locale, such as its name.
Instead, Medusa defines a read-only link from the Store Module's StoreLocale data model to the Translation Module's Locale data model. This means you can retrieve the details of a store's supported locales, but you don't manage the links in a pivot table in the database.
Retrieve with Query#
To retrieve the details of a store's locales with Query, pass supported_locales.locale.* in fields: