Skip to main content

Page Object

A static page that can be manually added by a shop operator through the dashboard.

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
}

Fields

Page.id ● ID! non-null scalar miscellaneous

ID of the page.

Page.privateMetadata ● [MetadataItem!]! non-null object miscellaneous

List of private metadata items. Requires staff permissions to access.

Page.privateMetafield ● String scalar miscellaneous

A single key from private metadata. Requires staff permissions to access.

Tip: Use GraphQL aliases to fetch multiple keys.

Page.privateMetafield.key ● String! non-null scalar miscellaneous

Page.privateMetafields ● Metadata scalar miscellaneous

Private metadata. Requires staff permissions to access. Use keys to control which fields you want to include. The default is to include everything.

Page.privateMetafields.keys ● [String!] list scalar miscellaneous

Page.metadata ● [MetadataItem!]! non-null object miscellaneous

List of public metadata items. Can be accessed without permissions.

Page.metafield ● String scalar miscellaneous

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

Page.metafield.key ● String! non-null scalar miscellaneous

Page.metafields ● Metadata scalar miscellaneous

Public metadata. Use keys to control which fields you want to include. The default is to include everything.

Page.metafields.keys ● [String!] list scalar miscellaneous

Page.assignedAttribute ● AssignedAttribute interface attributes

Get a single attribute attached to page by attribute slug.

Added in Saleor 3.22
Page.assignedAttribute.slug ● String! non-null scalar miscellaneous

Slug of the attribute

Page.assignedAttributes ● [AssignedAttribute!]! non-null interface attributes

List of attributes assigned to this page.

Added in Saleor 3.22
Page.assignedAttributes.limit ● PositiveInt scalar miscellaneous

Maximum number of attributes to return. Default is 100.

Page.seoTitle ● String scalar miscellaneous

Title of the page for SEO.

Page.seoDescription ● String scalar miscellaneous

Description of the page for SEO.

Page.title ● String! non-null scalar miscellaneous

Title of the page.

Page.content ● JSONString scalar miscellaneous

Content of the page.

Rich text format. For reference see https://editorjs.io/

Page.publicationDate ● Date deprecated scalar miscellaneous

DEPRECATED

Use the publishedAt field to fetch the publication date.

Page.publishedAt ● DateTime scalar miscellaneous

The page publication date.

Page.isPublished ● Boolean! non-null scalar miscellaneous

Determines if the page is published.

Page.slug ● String! non-null scalar miscellaneous

Slug of the page.

Page.pageType ● PageType! non-null object pages

Determines the type of page

Page.created ● DateTime! non-null scalar miscellaneous

Date and time at which page was created.

Page.contentJson ● JSONString! deprecated non-null scalar miscellaneous

DEPRECATED

Use the content field instead.

Content of the page.

Rich text format. For reference see https://editorjs.io/

Page.translation ● PageTranslation object pages

Returns translated page fields for the given language code.

Page.translation.languageCode ● LanguageCodeEnum! non-null enum miscellaneous

A language code to return the translation for page.

Page.attribute ● SelectedAttribute deprecated object attributes

DEPRECATED

Use assignedAttribute field instead.

Get a single attribute attached to page by attribute slug.

Page.attribute.slug ● String! non-null scalar miscellaneous

Slug of the attribute

Page.attributes ● [SelectedAttribute!]! deprecated non-null object attributes

DEPRECATED

Use assignedAttributes field instead.

List of attributes assigned to this page.

Interfaces

Node interface miscellaneous

An object with an ID

ObjectWithMetadata interface miscellaneous

ObjectWithAttributes interface attributes

An object with attributes.

Added in Saleor 3.22

Returned By

page query

Member Of

AssignedMultiPageReferenceAttribute object ● AssignedSinglePageReferenceAttribute object ● MenuItem object ● OrderGrantedRefund object ● PageCountableEdge object ● PageCreate object ● PageCreated object ● PageDelete object ● PageDeleted object ● PageReorderAttributeValues object ● PageTranslatableContent object ● PageUpdate object ● PageUpdated object ● TransactionEvent object ● TransactionItem object