Home > @vue-storefront/magento-api > cmsPage
cmsPage() function
Fetch CMS Page from Magento
Signature:
export default function getCmsPage(context: Context, identifier: string, customQuery?: CustomQuery, customHeaders?: CustomHeaders): Promise<ApolloQueryResult<CmsPageQuery>>;
Parameters
Parameter | Type | Description |
---|---|---|
context | Context | VSF Context |
identifier | string | identifier of CMS page |
customQuery | CustomQuery | (Optional) (optional) - custom query that extends default cmsPage GraphQL query |
customHeaders | CustomHeaders | (Optional) (optional) - custom headers that extends the default headers |
Returns:
Promise<ApolloQueryResult<CmsPageQuery>>