Skip to main content

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 @deprecated
publishedAt: DateTime
isPublished: Boolean!
slug: String!
pageType: PageType!
created: DateTime!
contentJson: JSONString! @deprecated
translation(languageCode: LanguageCodeEnum!): PageTranslation
attributes: [SelectedAttribute!]!
}
Expand ▼

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.

Added in Saleor 3.3
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.

Added in Saleor 3.3
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.

Added in Saleor 3.3
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.

Added in Saleor 3.3
Page.metafields.keys ● [String!] list scalar miscellaneous

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

This field will be removed in Saleor 4.0. Use the publishedAt field to fetch the publication date.

Page.publishedAt ● DateTime scalar miscellaneous

The page publication date.

Added in Saleor 3.3

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

This field will be removed in Saleor 4.0. 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.attributes ● [SelectedAttribute!]! non-null object attributes

List of attributes assigned to this product.

Interfaces

Node interface miscellaneous

An object with an ID

ObjectWithMetadata interface miscellaneous

Returned By

page query

Member Of

MenuItem object ● PageCountableEdge object ● PageCreate object ● PageCreated object ● PageDelete object ● PageDeleted object ● PageReorderAttributeValues object ● PageTranslatableContent object ● PageUpdate object ● PageUpdated object