Skip to content

pages

Queryin Content

List pages with optional filtering and search, for sitemaps, navigation and content management.

Arguments

ArgumentTypeDescription
pageInt!Default 0
pageSizeInt!Default 50
versionContentVersionType
types[PageType!]
searchTermString
sortPageSortOrderType

Returns

PagesResult!

FieldTypeDescription
results[Page!]!List of pages returned in the result.
totalInt!Total number of pages matching the query.

Example

query Pages(
$page: Int!
$pageSize: Int!
$version: ContentVersionType
$types: [PageType!]
$searchTerm: String
$sort: PageSortOrderType
) {
pages(
page: $page
pageSize: $pageSize
version: $version
types: $types
searchTerm: $searchTerm
sort: $sort
) {
results {
id
name
heading
path
}
total
}
}

The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.