Log in
Model

SortFields

Magento\CatalogGraphQl\Model\Resolver\Category\SortFields

What it does

This resolver provides sort field options and the default sort order for product listings in a category through GraphQL.

Developers use this when building GraphQL queries that need to display available sorting options (like name, price, position) and determine which sort method is set as default for the store.

Public Methods

  • resolve()