page
Fetch any page type by path, for a route that does not know which kind of page it will land on. Select the Page fields, and the rest per page type.
Arguments
| Argument | Type | Description |
|---|---|---|
version | ContentVersionType | |
path | String! | |
previewId | String |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier for the page. |
name | String! | Name of the page. |
heading | String! | Text of the page's one top-level heading, which the page renders itself. |
path | String! | URL path of the page. |
translatedPaths | [TranslatedPath!] | List of translated paths for different locales. |
breadcrumbs | [Breadcrumb!] | Breadcrumb trail for the page. |
meta | PageMeta | Page metadata for SEO and other purposes. |
Example
query Page($version: ContentVersionType, $path: String!, $previewId: String) { page(version: $version, path: $path, previewId: $previewId) { id name heading path translatedPaths { locale path } breadcrumbs { name path type } meta { title description } }}{ "version": "DRAFT", "path": "/example", "previewId": "Example"}{ "data": { "page": { "id": "id-1", "name": "Example", "heading": "Example", "path": "/example", "translatedPaths": [ { "locale": "Example", "path": "/example" } ], "breadcrumbs": [ { "name": "Example", "path": "/example", "type": "CATEGORY" } ], "meta": { "title": "Example", "description": "Example" } } }}The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.

