Log in
Model

SwatchLayerFilterItemResolver

Magento\SwatchesGraphQl\Model\Resolver\SwatchLayerFilterItemResolver

What it does

This resolver determines the GraphQL type for swatch filter items in layered navigation.

It checks if the filter data contains swatch information and returns 'SwatchLayerFilterItem' as the type, enabling GraphQL queries to properly handle color and visual swatches in product filtering.

Developers use this when implementing GraphQL APIs for product filtering with swatch attributes.

Public Methods

  • resolveType()