PageType Object
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 @deprecated(reason: "Use `where` filter instead."), where: AttributeWhereInput, search: String, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
hasPages: Boolean
}
Interfaces
Fields
id
id · ID!
ID of the page type.
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!]
name
name · String!
Name of the page type.
slug
slug · String!
Slug of the page type.
attributes
attributes · [Attribute!]
Page attributes of that page type.
availableAttributes
availableAttributes · AttributeCountableConnection
Attributes that can be assigned to the page type.
filter
filter · AttributeFilterInput
Filtering options for attributes.
where
where · AttributeWhereInput
Where filtering options for attributes.
search
search · String
Search attributes.
before
before · String
Return the elements in the list that come before the specified cursor.
after
after · String
Return the elements in the list that come after the specified cursor.
first
first · Int
Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
last
last · Int
Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
hasPages
hasPages · Boolean
Whether page type has pages assigned.
Used by
- _Entity (unions)
- ReferenceType (unions)
- RefundSettings (objects)
- ReturnSettings (objects)
- Page (objects)
- PageAttributeAssign (objects)
- PageAttributeUnassign (objects)
- PageTypeCountableEdge (objects)
- PageTypeCreate (objects)
- PageTypeCreated (objects)
- PageTypeDelete (objects)
- PageTypeDeleted (objects)
- PageTypeReorderAttributes (objects)
- PageTypeUpdate (objects)
- PageTypeUpdated (objects)
- pageType (queries)
Schema: Saleor 3.23.43. Download SDL.