Log in
Model

Variant

Magento\ConfigurableProductGraphQl\Model\Options\DataProvider\Variant

What it does

This class retrieves all salable child products (variants) of a configurable product for GraphQL queries.

Developers use it when they need to fetch variant data including stock status, media gallery, and tier pricing information for displaying configurable product options in a GraphQL API response.

Public Methods

  • getSalableVariantsByParent()