Page
Requires access scope.
Shopify merchants can create pages to hold static HTML content. Each Page object represents a custom page on the online store.
Anchor to FieldsFields
- body (HTML!)
- bodySummary (String!)
- createdAt (DateTime!)
- handle (String!)
- id (ID!)
- metafield (Metafield)
- metafields ([Metafield]!)
- onlineStoreUrl (URL)
- seo (SEO)
- title (String!)
- trackingParameters (String)
- updatedAt (DateTime!)
- Anchor to bodybody•HTML!non-null
The description of the page, complete with HTML formatting.
- Anchor to bodySummarybody•String!
Summary non-null Summary of the page body.
- Anchor to createdAtcreated•Date
At Time! non-null The timestamp of the page creation.
- Anchor to handlehandle•String!non-null
A human-friendly unique string for the page automatically generated from its title.
- •ID!non-null
A globally-unique ID.
- Anchor to metafieldmetafield•MetafieldToken access required
A custom field, including its
namespaceandkey, that's associated with a Shopify resource for the purposes of adding and storing additional information.- Anchor to namespacenamespace•String
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
- •String!required
The identifier for the metafield.
Arguments
- Anchor to metafieldsmetafields•[Metafield]!non-null Token access required
A list of custom fields that a merchant associates with a Shopify resource.
- Anchor to identifiersidentifiers•[Has
Metafields Identifier!]! required The list of metafields to retrieve by namespace and key.
The input must not contain more than
250values.
Arguments
- Anchor to onlineStoreUrlonline•URL
Store Url The URL used for viewing the resource on the shop's Online Store. Returns
nullif the resource is currently not published to the Online Store sales channel.- •SEO
The page's SEO information.
- Anchor to titletitle•String!non-null
The title of the page.
- Anchor to trackingParameterstracking•String
Parameters URL parameters to be added to a page URL to track the origin of on-site search traffic for analytics reporting. Returns a result when accessed through the search or predictiveSearch queries, otherwise returns null.
- Anchor to updatedAtupdated•Date
At Time! non-null The timestamp of the latest page update.
Anchor to QueriesQueries
- page (Page)
- pages (PageConnection!)
- pageByHandle (Page): deprecated
- •query
Fetch a specific
Pageby one of its unique attributes.- Anchor to handlehandle•String
The handle of the
Page.- •ID
The ID of the
Page.
Arguments
- •query
List of the shop's pages.
- Anchor to firstfirst•Int
Returns up to the first
nelements from the list.- Anchor to afterafter•String
Returns the elements that come after the specified cursor.
- Anchor to lastlast•Int
Returns up to the last
nelements from the list.- Anchor to beforebefore•String
Returns the elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Page
Key Sort Keys Default:ID Sort the underlying list by the given key.
- Anchor to queryquery•String
Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.
Arguments
- •queryDeprecated
- Anchor to handlehandle•String!required
The handle of the page.
Arguments
Anchor to InterfacesInterfaces
- HasMetafields
- Node
- OnlineStorePublishable
- Trackable
- •interface
- •interface
- •interface