QueryDirectory · Magento 2.4.9
currency
currency is a Magento 2 GraphQL query in the Directory module. Return information about the store's currency. It returns Currency and is callable anonymously.
Last verified: against Magento 2.4.9.
Returns
Resolver class
Magento\DirectoryGraphQl\Model\Resolver\Currency
Cache
identity: Magento\DirectoryGraphQl\Model\Resolver\Currency\Identity
Example request
Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.
Headers
Query
query {
currency {
base_currency_code
base_currency_symbol
default_display_currecy_code
default_display_currency_code
default_display_currecy_symbol
default_display_currency_symbol
available_currency_codes
exchange_rates {
currency_to
rate
}
}
}Variables
{}Related in DirectoryGraphQl
Other fields shipped by the same module.
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.