MageSmith
QueryDirectory · Magento 2.4.9

countries

countries is a Magento 2 GraphQL query in the Directory module. The countries query provides information for all countries. It returns [Country] and is callable anonymously.

Last verified: against Magento 2.4.9.

Returns

[Country]

Resolver class

Magento\DirectoryGraphQl\Model\Resolver\Countries

Cache

identity: Magento\DirectoryGraphQl\Model\Resolver\Country\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 {
  countries {
    id
    two_letter_abbreviation
    three_letter_abbreviation
    full_name_locale
    full_name_english
    available_regions {
      id
      code
      name
    }
  }
}

Variables

{}

Every Magento dev tool, in one hosted workspace.

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