QueryDirectory · Magento 2.4.9
country
country is a Magento 2 GraphQL query in the Directory module. The countries query provides information for a single country. It returns Country and is callable anonymously.
Last verified: against Magento 2.4.9.
Returns
Resolver class
Magento\DirectoryGraphQl\Model\Resolver\Country
Cache
identity: Magento\DirectoryGraphQl\Model\Resolver\Country\Identity
Arguments
id String
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 {
country {
id
two_letter_abbreviation
three_letter_abbreviation
full_name_locale
full_name_english
available_regions {
id
code
name
}
}
}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.