Skip to Content

PageEdge

An edge in a connection to a Page.

Connection Structure

{ node { id title handle body createdAt updatedAt } cursor }

Edge Type

The PageEdge type represents a single item in a paginated connection to pages. It contains two fields:

  • node: The Page object at this edge. This field is optional and contains the actual page data including fields like id, title, handle, body, and timestamps.
  • cursor: A required String value that serves as an opaque bookmark for this position in the connection. Use this cursor value with the after or before pagination arguments to fetch additional pages in subsequent requests.

Example

query { pages(first: 10) { edges { node { id title handle } cursor } pageInfo { hasNextPage endCursor } } }