Log in
Model

GetComparableAttributes

Magento\CompareListGraphQl\Model\Service\GetComparableAttributes

What it does

This service class retrieves comparable attributes for products in a customer's comparison list in GraphQL queries.

Developers use this when implementing GraphQL resolvers that need to display which product attributes (like color, size, price) can be compared across products in the compare list.

It returns an array of attribute codes and labels that are relevant for comparison.

Public Methods

  • execute()