Skip to main content
Version: 3.x

Page

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

type Page implements Node, ObjectWithMetadata {
id: ID!
privateMetadata: [MetadataItem!]!
privateMetafield(key: String!): String
privateMetafields(keys: [String!]): Metadata
metadata: [MetadataItem!]!
metafield(key: String!): String
metafields(keys: [String!]): Metadata
seoTitle: String
seoDescription: String
title: String!
content: JSONString
publicationDate: Date
publishedAt: DateTime
isPublished: Boolean!
slug: String!
pageType: PageType!
created: DateTime!
contentJson: JSONString!
translation(languageCode: LanguageCodeEnum!): PageTranslation
attributes: [SelectedAttribute!]!
}

Fields

id (ID!)

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.

Added in Saleor 3.3.

Note: this API is currently in Feature Preview and can be subject to changes at later point.

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.

Added in Saleor 3.3.

Note: this API is currently in Feature Preview and can be subject to changes at later point.

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.

Added in Saleor 3.3.

Note: this API is currently in Feature Preview and can be subject to changes at later point.

metafields (Metadata)

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

Added in Saleor 3.3.

Note: this API is currently in Feature Preview and can be subject to changes at later point.

seoTitle (String)

seoDescription (String)

title (String!)

content (JSONString)

Content of the page.

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

publicationDate (Date)

publishedAt (DateTime)

The page publication date.

Added in Saleor 3.3.

isPublished (Boolean!)

slug (String!)

pageType (PageType!)

created (DateTime!)

contentJson (JSONString!)

Content of the page.

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

translation (PageTranslation)

Returns translated page fields for the given language code.

A language code to return the translation for page.

attributes ([SelectedAttribute!]!)

List of attributes assigned to this product.

Interfaces

Node

An object with an ID

ObjectWithMetadata