Log in
Model

ConfigurableProductTypeResolver

Magento\ConfigurableProductGraphQl\Model\ConfigurableProductTypeResolver

What it does

This class resolves the GraphQL type for configurable products in Magento 2's GraphQL API.

When GraphQL queries retrieve product data, this resolver checks if a product is a configurable product type and returns the appropriate GraphQL type name 'ConfigurableProduct'.

Developers use this to ensure configurable products are properly identified and returned with the correct schema structure in GraphQL responses.

Public Methods

  • resolveType()