Log in
Model

SortAttributeReader

Magento\CatalogGraphQl\Model\Config\SortAttributeReader

What it does

This class reads product attributes that are marked as sortable and adds them as sorting options to the GraphQL schema.

Developers would use this when they need to extend GraphQL sorting capabilities with custom EAV attributes that have been configured as sortable in the catalog.

It automatically generates GraphQL configuration for the SortEnum type based on available sort attributes.

Public Methods

  • read()