#Taxonomies
#Overview
A taxonomy is a group of terms arranged in a hierarchical structure. The primary purpose of a taxonomy is to classify and logically connect related content items. This helps with content management and improves user experience with enhanced searchability.
Learn more about Taxonomies.
#Fetch a taxonomy
To fetch a taxonomy, you need to access the API Playground section of your Hygraph project, select Management API
at the top of the screen, and run the following query:
Query
Response
#Fetch taxonomy nodes
In this query, you can fetch the taxonomy nodes. The root node will return parent:null
.
Query
Response
You can also retrieve the children of each node. In this case, you need to know how deep your taxonomy is. The following query returns the following taxonomy structure: Root node > Child 1 > Child 2
Query
Response