HydratorComposite
Magento\GraphQlResolverCache\Model\Resolver\Result\HydratorComposite
What it does
This class orchestrates multiple hydrator objects to populate cached GraphQL resolver data.
Developers use it to manage a collection of hydrators that restore complex data structures from cache, with support for both regular hydration and pre-hydration phases.
It's particularly useful when resolver results contain various types of data (like products, categories, or custom entities) that each need specialized hydration logic.
Public Methods
- hydrate()
- prehydrate()