Log in
Model

ProductInterfaceTypeResolverComposite

Magento\CatalogGraphQl\Model\ProductInterfaceTypeResolverComposite

What it does

This class resolves the concrete GraphQL product type (e.g., SimpleProduct, ConfigurableProduct) from generic product data in GraphQL queries.

Developers would extend this by adding custom type resolvers when introducing new product types that need to be exposed through Magento's GraphQL API.

It's part of the composite pattern that delegates type resolution to specific resolvers based on the product's type_id.

Public Methods

  • resolveType()