Model
CatalogProductTypeResolver
Magento\CatalogGraphQl\Model\CatalogProductTypeResolver
What it does
This class determines the GraphQL type for catalog products based on their type_id.
It's used by Magento's GraphQL API to return the correct product type (SimpleProduct or VirtualProduct) when querying products, ensuring the response contains the appropriate fields for each product type.
Public Methods
- resolveType()