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:

TipRead-only links are used to query data across modules, but the relations aren't stored in a pivot table in the database.

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 Currency Module's Currency data model and the Store 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. The currencies of a store are determined by the currency_code of the Currency data model in the Store Module.

Retrieve with Query#

To retrieve the details of a store's currencies with Query, pass supported_currencies.currency.* in fields:

Was this page helpful?
Edit this page