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

cmsBlocks() function

Fetch CMS Blocks from Magento Api.

Signature:

export default function getCmsBlocks(context: Context, identifiers: string, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise<ApolloQueryResult<CmsBlockQuery>>;

Parameters

Parameter Type Description
context Context VSF Context
identifiers string identifiers of CMS blocks
customQuery CustomQuery (Optional) (optional) - custom GraphQL query that extends the default cmsBlocks query
customHeaders CustomHeaders (Optional) (optional) - custom headers that extends the default headers

Returns:

Promise<ApolloQueryResult<CmsBlockQuery>>