Home > @vue-storefront/magento-api > currency

currency() function

Fetches the currency information.

Signature:

export default function currency(context: Context, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise<ApolloQueryResult<CurrencyQuery>>;

Parameters

Parameter Type Description
context Context VSF context
customQuery CustomQuery (Optional) (optional) - custom GraphQL query that extends the default query
customHeaders CustomHeaders (Optional) (optional) - custom headers that extends the default headers

Returns:

Promise<ApolloQueryResult<CurrencyQuery>>