Schema Documentation
Category
Description
The category type
Fields
Field Name | Description |
---|---|
ancestors -
CategoryToAncestorsCategoryConnection | The ancestors of the node. Default ordered as lowest (closest to the child) to highest (closest to the root). |
Arguments
| |
categoryId -
Int | The id field matches the WP_Post->ID field. Deprecated in favor of databaseId |
children -
CategoryToCategoryConnection | Connection between the category type and the category type |
Arguments
| |
contentNodes -
CategoryToContentNodeConnection | Connection between the category type and the ContentNode type |
Arguments
| |
count -
Int | The number of objects connected to the object |
databaseId -
Int! | The unique resource identifier path |
description -
String | The description of the object |
enqueuedScripts -
TermNodeToEnqueuedScriptConnection | Connection between the TermNode type and the EnqueuedScript type |
Arguments
| |
enqueuedStylesheets -
TermNodeToEnqueuedStylesheetConnection | Connection between the TermNode type and the EnqueuedStylesheet type |
Arguments
| |
id -
ID! | The unique resource identifier path |
isContentNode -
Boolean! | Whether the node is a Content Node |
isRestricted -
Boolean | Whether the object is restricted from the current viewer |
isTermNode -
Boolean! | Whether the node is a Term |
link -
String | The link to the term |
name -
String | The human friendly name of the object. |
parent -
CategoryToParentCategoryConnectionEdge | Connection between the category type and the category type |
parentDatabaseId -
Int | Database id of the parent node |
parentId -
ID | The globally unique identifier of the parent node. |
posts -
CategoryToPostConnection | Connection between the category type and the post type |
Arguments
| |
seo -
TaxonomySEO | The Yoast SEO data of the Categories taxonomy. |
slug -
String | An alphanumeric identifier for the object unique to its type. |
taxonomy -
CategoryToTaxonomyConnectionEdge | Connection between the category type and the Taxonomy type |
taxonomyName -
String | The name of the taxonomy that the object is associated with |
termGroupId -
Int | The ID of the term group that this term object belongs to |
termTaxonomyId -
Int | The taxonomy ID that the object is associated with |
uri -
String | The unique resource identifier path |
Example
{"ancestors":CategoryToAncestorsCategoryConnection,"categoryId":987,"children":CategoryToCategoryConnection,"contentNodes":CategoryToContentNodeConnection,"count":987,"databaseId":123,"description":"abc123","enqueuedScripts":TermNodeToEnqueuedScriptConnection,"enqueuedStylesheets":TermNodeToEnqueuedStylesheetConnection,"id":"4","isContentNode":false,"isRestricted":true,"isTermNode":false,"link":"abc123","name":"abc123","parent":CategoryToParentCategoryConnectionEdge,"parentDatabaseId":987,"parentId":"4","posts":CategoryToPostConnection,"seo":TaxonomySEO,"slug":"xyz789","taxonomy":CategoryToTaxonomyConnectionEdge,"taxonomyName":"abc123","termGroupId":123,"termTaxonomyId":123,"uri":"abc123"}