The following below Magento 2.x GraphQL Query
Syntax
cmsPage(identifier: String): CmsPage
Here identifier, CMS Page’s identifier always unique
[1] To Display 404 Not Found Page
{
cmsPage(identifier: "no-route") {
title
url_key
content_heading
content
page_layout
meta_title
meta_keywords
meta_description
}
}
[2] To Display Home Page
{
cmsPage(identifier: "home") {
title
url_key
content_heading
content
page_layout
meta_title
meta_keywords
meta_description
}
}
[2] To Display About Us Page
{
cmsPage(identifier: "about-us") {
title
url_key
content_heading
content
page_layout
meta_title
meta_keywords
meta_description
}
}
[2] To Display Privacy Policy Page
{
cmsPage(identifier: "privacy-policy-cookie-restriction-mode") {
title
url_key
content_heading
content
page_layout
meta_title
meta_keywords
meta_description
}
}
[2] To Display “What are Cookies?” Page
{
cmsPage(identifier: "enable-cookies") {
title
url_key
content_heading
content
page_layout
meta_title
meta_keywords
meta_description
}
}