Taxonomy
Represents Shopify's standardized product taxonomy tree. Provides categories that you can filter by search criteria or hierarchical relationships.
You can search categories globally, retrieve children of a specific category, find siblings, or get descendants. When you specify no filter arguments, you get all top-level categories in the taxonomy.
Anchor to FieldsFields
- categories (TaxonomyCategoryConnection!)
- Anchor to categoriescategories•Taxonomy
Category Connection! non-null Returns the categories of the product taxonomy based on the arguments provided. If a
searchargument is provided, then all categories that match the search query globally are returned. If aargument is provided, then all children of the specified category are returned. If aargument is provided, then all siblings of the specified category are returned. If aargument is provided, then all descendents of the specified category are returned. If no arguments are provided, then all the top-level categories of the taxonomy are returned.- Anchor to searchsearch•String
Searches the product taxonomy for matching categories.
- Anchor to childrenOfchildren•ID
Of The ID of the category associated with the child categories to return.
- Anchor to siblingsOfsiblings•ID
Of The ID of the category associated with the sibling categories to return.
- Anchor to descendantsOfdescendants•ID
Of The ID of the category associated with the descendant categories to return.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
Arguments
Anchor to QueriesQueries
- taxonomy (Taxonomy)
- •query
Access to Shopify's standardized product taxonomy for categorizing products. The
Taxonomyorganizes products into a hierarchical tree structure with categories, attributes, and values.Query categories using search terms, or navigate the hierarchy by requesting children, siblings, or descendants of specific categories. Each
includes its position in the tree, parent-child relationships, and associated attributes for that product category.