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