Log in
Model

AttributesJoiner

Magento\CatalogGraphQl\Model\AttributesJoiner

What it does

This class analyzes GraphQL queries to determine which product attributes are requested and automatically joins them to EAV collections.

Developers use this when building GraphQL resolvers for catalog entities to ensure only the requested attributes are loaded from the database, improving query performance.

It handles complex GraphQL query structures including fragments and inline fragments.

Public Methods

  • join()
  • getQueryFields()
  • getQueryData()
  • _resetState()