categoryHierarchy
Retrieve the ancestor chain of a category, ordered from the category itself up to the root.
Used to build breadcrumbs and to confirm a category's position within the catalogue tree.
Possible errors:
- CATEGORY_NOT_FOUND: The supplied identifier did not match any category.
- CATEGORY_HIERARCHY_ERROR: The category hierarchy could not be resolved.
AUTH: Role=[product.OWNER,product.EDITOR,product.VIEWER]
categoryHierarchy(
categoryId: Int!
): [Category!]!
Arguments
categoryHierarchy.categoryId ● Int! non-null scalar
Numeric identifier of the category whose ancestor chain is requested.
Must be a valid category identifier that exists in the catalogue.
Type
Category object
Category entity representing product classification and organization.
External entity from the catalog service that provides category identification and hierarchy information. Used as a reference for category-specific attributes and organizational relationships within the attribute system.