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(reason: "Use the `publishedAt` field to fetch the publication date.")
publishedAt: DateTime
isPublished: Boolean!
slug: String!
pageType: PageType!
created: DateTime!
contentJson: JSONString! @deprecated(reason: "Use the `content` field instead.")
translation(languageCode: LanguageCodeEnum!): PageTranslation
attribute(slug: String!): SelectedAttribute @deprecated(reason: "Use `assignedAttribute` field instead.")
attributes: [SelectedAttribute!]! @deprecated(reason: "Use `assignedAttributes` field instead.")
}
Interfaces
Node, ObjectWithMetadata, ObjectWithAttributes
Fields
id
id · ID!
ID of the page.
privateMetadata
privateMetadata · [MetadataItem!]!
List of private metadata items. Requires staff permissions to access.
privateMetafield
privateMetafield · String
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
key
key · String!
privateMetafields
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
keys · [String!]
metadata
metadata · [MetadataItem!]!
List of public metadata items. Can be accessed without permissions.
metafield
metafield · String
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
key
key · String!
metafields
metafields · Metadata
Public metadata. Use keys to control which fields you want to include. The default is to include everything.
keys
keys · [String!]
assignedAttribute
assignedAttribute · AssignedAttribute
Get a single attribute attached to page by attribute slug.
slug
slug · String!
Slug of the attribute
assignedAttributes
assignedAttributes · [AssignedAttribute!]!
List of attributes assigned to this page.
limit
limit · PositiveInt
Maximum number of attributes to return. Default is 100.
Default: 100.
seoTitle
seoTitle · String
Title of the page for SEO.
seoDescription
seoDescription · String
Description of the page for SEO.
title
title · String!
Title of the page.
content
content · JSONString
Content of the page.
Rich text format. For reference see https://editorjs.io/
publicationDate
publicationDate · Date
publishedAt
publishedAt · DateTime
The page publication date.
isPublished
isPublished · Boolean!
Determines if the page is published.
slug
slug · String!
Slug of the page.
pageType
pageType · PageType!
Determines the type of page
created
created · DateTime!
Date and time at which page was created.
contentJson
contentJson · JSONString!
Content of the page.
Rich text format. For reference see https://editorjs.io/
translation
translation · PageTranslation
Returns translated page fields for the given language code.
languageCode
languageCode · LanguageCodeEnum!
A language code to return the translation for page.
attribute
attribute · SelectedAttribute
Get a single attribute attached to page by attribute slug.
slug
slug · String!
Slug of the attribute
attributes
attributes · [SelectedAttribute!]!
List of attributes assigned to this page.
Used by
- AssignedMultiPageReferenceAttribute (objects)
- AssignedSinglePageReferenceAttribute (objects)
- MenuItem (objects)
- OrderGrantedRefundLine (objects)
- Fulfillment (objects)
- FulfillmentLine (objects)
- OrderGrantedRefund (objects)
- PageCountableEdge (objects)
- PageCreate (objects)
- PageCreated (objects)
- PageDelete (objects)
- PageDeleted (objects)
- PageReorderAttributeValues (objects)
- PageTranslatableContent (objects)
- PageUpdate (objects)
- PageUpdated (objects)
- page (queries)
- TransactionEvent (objects)
- TransactionItem (objects)
Schema: Saleor 3.23.43. Download SDL.