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

storeConfig() function

Fetches the store configuration from the API

Signature:

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

Parameters

Parameter Type Description
context Context VSF Context
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<StoreConfigQuery>>