Model
CategoryTree
Magento\CatalogGraphQl\Model\Resolver\CategoryTree
What it does
This resolver handles GraphQL queries for fetching category tree data in Magento 2.
Developers use this when implementing or customizing GraphQL endpoints that need to return hierarchical category structures, such as navigation menus or category listings.
It validates category existence and active status, then retrieves and formats the category tree for the specified store.
Public Methods
- resolve()