These are examples of queries to fetch page data.

Fetching pages permalink

A single page:

A list of pages:

Fetching "unrestricted" pages permalink

โš ๏ธ Note: These fields are available when module "Schema for the Admin" is enabled. Read more in guide Querying 'unrestricted' fields.

Fields page, pages and pageCount only retrieve pages with status "publish".

To fetch pages with any status ("publish", "pending", "draft" or "trash"), use these fields:

  • unrestrictedPage
  • unrestrictedPages
  • unrestrictedPageCount