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​

id ● ID!​

ID of the page.

privateMetadata ● [MetadataItem!]!​

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

privateMetafield ● String​

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

Tip: Use GraphQL aliases to fetch multiple keys.

key ● String!​

privateMetafields ● Metadata​

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

keys ● [String!]​

metadata ● [MetadataItem!]!​

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

metafield ● String​

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

key ● String!​

metafields ● Metadata​

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

keys ● [String!]​

assignedAttribute ● AssignedAttribute​

Get a single attribute attached to page by attribute slug.

Added in Saleor 3.22
slug ● String!​

Slug of the attribute

assignedAttributes ● [AssignedAttribute!]!​

List of attributes assigned to this page.

Added in Saleor 3.22
limit ● PositiveInt​

Maximum number of attributes to return. Default is 100.

seoTitle ● String​

Title of the page for SEO.

seoDescription ● String​

Description of the page for SEO.

title ● String!​

Title of the page.

content ● JSONString​

Content of the page.

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

publishedAt ● DateTime​

The page publication date.

isPublished ● Boolean!​

Determines if the page is published.

slug ● String!​

Slug of the page.

pageType ● PageType!​

Determines the type of page

created ● DateTime!​

Date and time at which page was created.

translation ● PageTranslation​

Returns translated page fields for the given language code.

languageCode ● LanguageCodeEnum!​

A language code to return the translation for page.

Show deprecatedHide deprecated

publicationDate ● Date​

DEPRECATED

Use the publishedAt field to fetch the publication date.

contentJson ● JSONString!​

DEPRECATED

Use the content field instead.

Content of the page.

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

attribute ● SelectedAttribute​

DEPRECATED

Use assignedAttribute field instead.

Get a single attribute attached to page by attribute slug.

slug ● String!​

Slug of the attribute

attributes ● [SelectedAttribute!]!​

DEPRECATED

Use assignedAttributes field instead.

List of attributes assigned to this page.

Interfaces​

Node​

An object with an ID

ObjectWithMetadata​

ObjectWithAttributes​

An object with attributes.

Added in Saleor 3.22

Returned By​

page query

Member Of​

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