MageSmith
QueryCms · Magento 2.4.9

cmsPage

cmsPage is a Magento 2 GraphQL query in the Cms module. Return details about a CMS page. It returns CmsPage and is callable anonymously.

Last verified: against Magento 2.4.9.

Returns

CmsPage

Resolver class

Magento\CmsGraphQl\Model\Resolver\Page

Cache

identity: Magento\CmsGraphQl\Model\Resolver\Page\Identity

Arguments

id Int

The ID of the CMS page.

identifier String

The identifier of the CMS page.

Example request

Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.

Headers

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline

Query

query {
  cmsPage {
    identifier
    url_key
    title
    content
    content_heading
    page_layout
    meta_title
    meta_description
    meta_keywords
  }
}

Variables

{}

Related in CmsGraphQl

Other fields shipped by the same module.

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.