Model
Categories
Magento\CatalogGraphQl\Model\Resolver\Categories
What it does
This GraphQL resolver retrieves all categories assigned to a product when querying product data through the GraphQL API.
Developers use this class when they need to fetch category information for products in headless or PWA implementations, ensuring only requested fields are loaded for optimal performance.
Public Methods
- resolve()