Home > @vue-storefront/magento-api > country
country() function
Fetches the information about a country given its ID
Signature:
export default function country(context: Context, id: string, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise<ApolloQueryResult<CountryInformationQuery>>;
Parameters
Parameter | Type | Description |
---|---|---|
context | Context | VSF Context |
id | string | ID of the country to be fetched |
customQuery | CustomQuery | (Optional) (optional) - custom GraphQL query that extends the default one |
customHeaders | CustomHeaders | (Optional) (optional) - custom headers that extends the default headers |
Returns:
Promise<ApolloQueryResult<CountryInformationQuery>>