Log in
Model

AttributeValue

Magento\EavGraphQl\Model\TypeResolver\AttributeValue

What it does

This class resolves the GraphQL type for EAV attribute values in API responses.

It determines whether an attribute should return a simple AttributeValue type or an AttributeSelectedOptions type based on the attribute's frontend input type (like select, multiselect).

Developers use this when extending Magento's GraphQL API to properly handle different attribute value formats.

Public Methods

  • resolveType()