Schema Documentation

pageBy

Deprecated in favor of using the single entry point for this type with ID and IDType fields. For example, instead of postBy( id: "" ), use post(id: "" idType: "")
Description

A page object

Response

Returns a Page

Arguments
NameDescription
id - ID Get the page object by its global ID
pageId - Int Get the page by its database ID
uri - String Get the page by its uri

Example

Query
query pageBy(  $id: ID,  $pageId: Int,$uri: String){  pageBy(    id: $id,    pageId: $pageId,    uri: $uri  ){    ancestors {      ...HierarchicalContentNodeToContentNodeAncestorsConnectionFragment    }author {      ...NodeWithAuthorToUserConnectionEdgeFragment    }authorDatabaseIdauthorIdchildren {      ...HierarchicalContentNodeToContentNodeChildrenConnectionFragment    }commentCountcommentStatuscomments {      ...PageToCommentConnectionFragment    }contentcontentType {      ...ContentNodeToContentTypeConnectionEdgeFragment    }contentTypeNamedatabaseIddatedateGmtdesiredSlugeditingLockedBy {      ...ContentNodeToEditLockConnectionEdgeFragment    }editorBlocks {      ...PageEditorBlockFragment    }enclosureenqueuedScripts {      ...ContentNodeToEnqueuedScriptConnectionFragment    }enqueuedStylesheets {      ...ContentNodeToEnqueuedStylesheetConnectionFragment    }featuredImage {      ...NodeWithFeaturedImageToMediaItemConnectionEdgeFragment    }featuredImageDatabaseIdfeaturedImageIdguididisContentNodeisFrontPageisPostsPageisPreviewisPrivacyPageisRestrictedisRevisionisTermNodelastEditedBy {      ...ContentNodeToEditLastConnectionEdgeFragment    }linkmenuOrdermodifiedmodifiedGmtpageIdparent {      ...HierarchicalContentNodeToParentContentNodeConnectionEdgeFragment    }parentDatabaseIdparentIdpreview {      ...PageToPreviewConnectionEdgeFragment    }previewRevisionDatabaseIdpreviewRevisionIdrevisionOf {      ...NodeWithRevisionsToContentNodeConnectionEdgeFragment    }revisions {      ...PageToRevisionConnectionFragment    }seo {      ...PostTypeSEOFragment    }slugstatustemplate {      ...ContentTemplateFragment    }titleuri  }}
Variables
{"id":4,"pageId":123,"uri":"xyz789"}
Response
{"data":{"pageBy":{"ancestors":HierarchicalContentNodeToContentNodeAncestorsConnection,"author":NodeWithAuthorToUserConnectionEdge,"authorDatabaseId":123,"authorId":"4","children":HierarchicalContentNodeToContentNodeChildrenConnection,"commentCount":987,"commentStatus":"abc123","comments":PageToCommentConnection,"content":"xyz789","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"xyz789","databaseId":123,"date":"abc123","dateGmt":"xyz789","desiredSlug":"xyz789","editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[PageEditorBlock],"enclosure":"abc123","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":123,"featuredImageId":4,"guid":"abc123","id":"4","isContentNode":true,"isFrontPage":false,"isPostsPage":true,"isPreview":false,"isPrivacyPage":false,"isRestricted":false,"isRevision":false,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"link":"xyz789","menuOrder":123,"modified":"xyz789","modifiedGmt":"xyz789","pageId":123,"parent":HierarchicalContentNodeToParentContentNodeConnectionEdge,"parentDatabaseId":987,"parentId":4,"preview":PageToPreviewConnectionEdge,"previewRevisionDatabaseId":123,"previewRevisionId":"4","revisionOf":NodeWithRevisionsToContentNodeConnectionEdge,"revisions":PageToRevisionConnection,"seo":PostTypeSEO,"slug":"abc123","status":"xyz789","template":ContentTemplate,"title":"abc123","uri":"xyz789"}}}