Log in
Interface

DehydratorInterface

Magento\GraphQlResolverCache\Model\Resolver\Result\DehydratorInterface

What it does

This interface defines a contract for converting GraphQL resolver results into a format that can be serialized and stored in cache.

Developers implement this interface to create dehydrators that prepare resolver data for caching by removing non-serializable elements like objects and converting them into basic array structures that can be restored later.

Public Methods

  • dehydrate()