MageSmith
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

Currency

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

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline

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

{}

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.