Schema Documentation

taxonomy

Description

Fetch a Taxonomy node by unique Identifier

Response

Returns a Taxonomy

Arguments
NameDescription
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":"xyz789","hierarchical":true,"id":"4","isRestricted":true,"label":"abc123","name":"xyz789","public":false,"restBase":"xyz789","restControllerClass":"abc123","showCloud":true,"showInAdminColumn":true,"showInGraphql":false,"showInMenu":false,"showInNavMenus":true,"showInQuickEdit":true,"showInRest":true,"showUi":false}}}