Skip to main content
Version: 3.x

PageType

Represents a type of page. It defines what attributes are available to pages of this type.

type PageType 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
name: String!
slug: String!
attributes: [Attribute!]
availableAttributes(
filter: AttributeFilterInput
where: AttributeWhereInput
before: String
after: String
first: Int
last: Int
): AttributeCountableConnection
hasPages: Boolean
}
Expand ▼

Fields

PageType.id ● ID! non-null scalar

ID of the page type.

PageType.privateMetadata ● [MetadataItem!]! non-null object

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

PageType.privateMetafield ● String scalar

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

Tip: Use GraphQL aliases to fetch multiple keys.

Added in Saleor 3.3
PageType.privateMetafield.key ● String! non-null scalar

PageType.privateMetafields ● Metadata scalar

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
PageType.privateMetafields.keys ● [String!] list scalar

PageType.metadata ● [MetadataItem!]! non-null object

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

PageType.metafield ● String scalar

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

Added in Saleor 3.3
PageType.metafield.key ● String! non-null scalar

PageType.metafields ● Metadata scalar

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

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

PageType.name ● String! non-null scalar

Name of the page type.

PageType.slug ● String! non-null scalar

Slug of the page type.

PageType.attributes ● [Attribute!] list object

Page attributes of that page type.

PageType.availableAttributes ● AttributeCountableConnection object

Attributes that can be assigned to the page type.

Requires one of the following permissions: MANAGE_PAGESMANAGE_PAGE_TYPES_AND_ATTRIBUTES
PageType.availableAttributes.filter ● AttributeFilterInput input
PageType.availableAttributes.where ● AttributeWhereInput input
PageType.availableAttributes.before ● String scalar

Return the elements in the list that come before the specified cursor.

PageType.availableAttributes.after ● String scalar

Return the elements in the list that come after the specified cursor.

PageType.availableAttributes.first ● Int scalar

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

PageType.availableAttributes.last ● Int scalar

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

PageType.hasPages ● Boolean scalar

Whether page type has pages assigned.

Requires one of the following permissions: MANAGE_PAGESMANAGE_PAGE_TYPES_AND_ATTRIBUTES

Interfaces

Node interface

An object with an ID

ObjectWithMetadata interface

Returned by

pageType query

Member of

Page object ● PageAttributeAssign object ● PageAttributeUnassign object ● PageTypeCountableEdge object ● PageTypeCreate object ● PageTypeCreated object ● PageTypeDelete object ● PageTypeDeleted object ● PageTypeReorderAttributes object ● PageTypeUpdate object ● PageTypeUpdated object

Implemented by

_Entity union


Was this page helpful?