Schema Documentation
HierarchicalContentNode
Description
Content node with hierarchical (parent/child) relationships
Fields
Field Name | Description |
---|---|
ancestors - HierarchicalContentNodeToContentNodeAncestorsConnection | Returns ancestors of the node. Default ordered as lowest (closest to the child) to highest (closest to the root). |
Arguments
| |
children - HierarchicalContentNodeToContentNodeChildrenConnection | Connection between the HierarchicalContentNode type and the ContentNode type |
Arguments
| |
contentType - ContentNodeToContentTypeConnectionEdge | Connection between the ContentNode type and the ContentType type |
contentTypeName - String! | The name of the Content Type the node belongs to |
databaseId - Int! | The unique identifier stored in the database |
date - String | Post publishing date. |
dateGmt - String | The publishing date set in GMT. |
desiredSlug - String | The desired slug of the post |
editingLockedBy - ContentNodeToEditLockConnectionEdge | If a user has edited the node within the past 15 seconds, this will return the user that last edited. Null if the edit lock doesn't exist or is greater than 15 seconds |
enclosure - String | The RSS enclosure for the object |
enqueuedScripts - ContentNodeToEnqueuedScriptConnection | Connection between the ContentNode type and the EnqueuedScript type |
Arguments
| |
enqueuedStylesheets - ContentNodeToEnqueuedStylesheetConnection | Connection between the ContentNode type and the EnqueuedStylesheet type |
Arguments
| |
guid - String | The global unique identifier for this post. This currently matches the value stored in WP_Post->guid and the guid column in the "post_objects" database table. |
id - ID! | The globally unique ID for the object |
isContentNode - Boolean! | Whether the node is a Content Node |
isPreview - Boolean | Whether the object is a node in the preview state |
isRestricted - Boolean | Whether the object is restricted from the current viewer |
isTermNode - Boolean! | Whether the node is a Term |
lastEditedBy - ContentNodeToEditLastConnectionEdge | The user that most recently edited the node |
link - String | The permalink of the post |
modified - String | The local modified time for a post. If a post was recently updated the modified field will change to match the corresponding time. |
modifiedGmt - String | The GMT modified time for a post. If a post was recently updated the modified field will change to match the corresponding time in GMT. |
parent - HierarchicalContentNodeToParentContentNodeConnectionEdge | The parent of the node. The parent object can be of various types |
parentDatabaseId - Int | Database id of the parent node |
parentId - ID | The globally unique identifier of the parent node. |
previewRevisionDatabaseId - Int | The database id of the preview node |
previewRevisionId - ID | Whether the object is a node in the preview state |
seo - PostTypeSEO | The Yoast SEO data of the ContentNode |
slug - String | The uri slug for the post. This is equivalent to the WP_Post->post_name field and the post_name column in the database for the "post_objects" table. |
status - String | The current status of the object |
template - ContentTemplate | The template assigned to a node of content |
uri - String | The unique resource identifier path |
Example
{"ancestors":HierarchicalContentNodeToContentNodeAncestorsConnection,"children":HierarchicalContentNodeToContentNodeChildrenConnection,"contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"abc123","databaseId":987,"date":"xyz789","dateGmt":"abc123","desiredSlug":"abc123","editingLockedBy":ContentNodeToEditLockConnectionEdge,"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"guid":"xyz789","id":4,"isContentNode":false,"isPreview":false,"isRestricted":false,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"link":"xyz789","modified":"xyz789","modifiedGmt":"xyz789","parent":HierarchicalContentNodeToParentContentNodeConnectionEdge,"parentDatabaseId":123,"parentId":4,"previewRevisionDatabaseId":987,"previewRevisionId":4,"seo":PostTypeSEO,"slug":"abc123","status":"xyz789","template":ContentTemplate,"uri":"abc123"}