Links between Currency Module and Other Modules
This document showcases the module links defined between the Currency Module and other commerce modules.
Summary#
The Currency Module has the following links to other modules:
First Data Model | Second Data Model | Type | Description |
---|---|---|---|
Read-only |
Store Module#
The Store Module has a Currency
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 between the Store Module's Currency
data model and the Currency Module's Currency
data model. Because the link is read-only from the Store
's side, you can only retrieve the details of a store's supported currencies, and not the other way around.
Retrieve with Query#
To retrieve the details of a store's currencies with Query, pass supported_currencies.currency.*
in fields
: