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
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":987,"authorId":"4","children":HierarchicalContentNodeToContentNodeChildrenConnection,"commentCount":987,"commentStatus":"abc123","comments":PageToCommentConnection,"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"abc123","databaseId":123,"date":"xyz789","dateGmt":"xyz789","desiredSlug":"xyz789","editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[PageEditorBlock],"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":987,"featuredImageId":4,"guid":"xyz789","id":4,"isContentNode":false,"isFrontPage":false,"isPostsPage":false,"isPreview":false,"isPrivacyPage":true,"isRestricted":true,"isRevision":true,"isTermNode":true,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"link":"xyz789","menuOrder":123,"modified":"abc123","modifiedGmt":"xyz789","pageId":123,"parent":HierarchicalContentNodeToParentContentNodeConnectionEdge,"parentDatabaseId":987,"parentId":"4","preview":PageToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":"4","revisionOf":NodeWithRevisionsToContentNodeConnectionEdge,"revisions":PageToRevisionConnection,"seo":PostTypeSEO,"slug":"abc123","status":"abc123","template":ContentTemplate,"title":"abc123","uri":"abc123"}}}