Log in
Model

ProductFieldsSelector

Magento\CatalogGraphQl\Model\Resolver\Product\ProductFieldsSelector

What it does

This class extracts and returns the list of product field names requested in a GraphQL query.

Developers use it to determine which product attributes need to be loaded from the database, enabling efficient data fetching by only retrieving the fields that were actually requested in the GraphQL query.

Public Methods

  • getProductFieldsFromInfo()