Page
Describes a page.
Type Definition
type Page {
handle: String
seoDescription: String
seoTitle: String
seoKeywords: String
title: String
id: Int
isStatic: Boolean
content: String
createdAt: String
updatedAt: String
}Fields
| Field | Type | Nullable | Description | Related Type |
|---|---|---|---|---|
handle | String | Yes | Returns the handle. | — |
seoDescription | String | Yes | Returns description for search engines. | — |
seoTitle | String | Yes | Returns title for search engines. | — |
seoKeywords | String | Yes | Returns keywords for search engines. | — |
title | String | Yes | Returns the title. | — |
id | Int | Yes | Returns the id. | — |
isStatic | Boolean | Yes | Returns true if this page was not built with the theme editor and has static content. | — |
content | String | Yes | Returns the static page content. | — |
createdAt | String | Yes | Returns the date when this page was created. | — |
updatedAt | String | Yes | Returns the date when this page was last updated at. | — |
Relationships
- The
Pageobject is used by theLinkobject via thepagefield, establishing a connection where a link can reference a page. - No other direct relationships or connections to other object types are defined on
Page.
Usage Examples
Basic Query
{
page(id: 12345) {
id
title
handle
seoTitle
seoDescription
seoKeywords
isStatic
content
createdAt
updatedAt
}
}Field Selection
{
page(id: 12345) {
title
handle
seoTitle
}
}Nested Queries
{
link(id: 67890) {
url
page {
id
title
content
}
}
}Filtering and Sorting
The Page object itself does not define filtering, sorting, or pagination fields. These operations should be applied at the query level that returns collections of Page objects, if supported by the API.
Implements
The Page type does not implement any interfaces.
Connections
No connection fields or pagination mechanisms are defined directly on the Page type.
Related Types
Link— referencesPagevia itspagefield, allowing traversal from a link to its associated page.
Best Practices
- When querying
Page, select only the fields you need to optimize response size and improve performance. - Use the
idfield to uniquely identify pages in queries and mutations. - Use
isStaticto differentiate between pages created via the theme editor and those with static content. - Leverage SEO-related fields (
seoTitle,seoDescription,seoKeywords) to enhance search engine optimization in your applications.
Notes
- All fields on
Pageare optional and may returnnullif the data is not available. - Dates (
createdAt,updatedAt) are returned as ISO 8601 formatted strings. - The API currently requires no authentication, but this may change in future versions.
- There are no computed or derived fields defined on
Page. - No field arguments are defined for
Pagefields. - For performance, avoid querying large
contentfields unless necessary, as they may contain substantial static page content.
Last updated on