These are examples of queries to fetch page data.
A single page:
A list of pages:
Top-level pages with their children:
Fields page
, pages
and pageCount
only retrieve pages with status "publish"
.
To fetch pages from the logged-in user, with any status ("publish"
, "pending"
, "draft"
or "trash"
), use these fields:
myPage
myPages
myPageCount
Only logged-in users can create pages.
Only users with the corresponding capabilities can edit pages.
This query uses nested mutations to update the page: