Schema Documentation
taxonomy
Description
Fetch a Taxonomy node by unique Identifier
Response
Returns a
Taxonomy
Arguments
Name | Description |
---|---|
id -
ID! | Unique Identifier for the Taxonomy node. |
idType -
TaxonomyIdTypeEnum | Type of unique identifier to fetch a taxonomy by. Default is Global ID |
Example
Query
query taxonomy(
$id: ID!,
$idType: TaxonomyIdTypeEnum
){
taxonomy(
id: $id,
idType: $idType
){
connectedContentTypes {
...TaxonomyToContentTypeConnectionFragment
}descriptiongraphqlPluralNamegraphqlSingleNamehierarchicalidisRestrictedlabelnamepublicrestBaserestControllerClassshowCloudshowInAdminColumnshowInGraphqlshowInMenushowInNavMenusshowInQuickEditshowInRestshowUi
}
}
Variables
{"id":4,"idType":"ID"}
Response
{"data":{"taxonomy":{"connectedContentTypes":TaxonomyToContentTypeConnection,"description":"abc123","graphqlPluralName":"xyz789","graphqlSingleName":"abc123","hierarchical":true,"id":"4","isRestricted":false,"label":"abc123","name":"abc123","public":false,"restBase":"xyz789","restControllerClass":"abc123","showCloud":true,"showInAdminColumn":false,"showInGraphql":true,"showInMenu":true,"showInNavMenus":true,"showInQuickEdit":false,"showInRest":false,"showUi":false}}}