page Query
Look up a page by ID or slug.
page(
id: ID
slug: String
slugLanguageCode: LanguageCodeEnum
channel: String
): Page
Details
type Page implements Node, ObjectWithMetadata, ObjectWithAttributes {
id: ID!
privateMetadata: [MetadataItem!]!
privateMetafield(
key: String!
): String
privateMetafields(
keys: [String!]
): Metadata
metadata: [MetadataItem!]!
metafield(
key: String!
): String
metafields(
keys: [String!]
): Metadata
assignedAttribute(
slug: String!
): AssignedAttribute
assignedAttributes(
limit: PositiveInt = 100
): [AssignedAttribute!]!
seoTitle: String
seoDescription: String
title: String!
content: JSONString
publicationDate: Date @deprecated
publishedAt: DateTime
isPublished: Boolean!
slug: String!
pageType: PageType!
created: DateTime!
contentJson: JSONString! @deprecated
translation(
languageCode: LanguageCodeEnum!
): PageTranslation
attribute(
slug: String!
): SelectedAttribute @deprecated
attributes: [SelectedAttribute!]! @deprecated
}
Arguments
id ● ID
ID of the page.
slug ● String
The slug of the page.
slugLanguageCode ● LanguageCodeEnum
Language code of the page slug, omit to use primary slug.
Added in Saleor 3.21channel ● String
Slug of a channel for which the data should be returned.
Added in Saleor 3.22Type
Page
A static page that can be manually added by a shop operator through the dashboard.