Log in
Collection

Options\Collection

Magento\ConfigurableProductGraphQl\Model\Options\Collection

What it does

This class collects and manages configurable product options for GraphQL queries.

It efficiently batches attribute collection loading for multiple configurable products, allowing developers to retrieve all configurable options (like size, color) for products in a single optimized query.

The class implements ResetAfterRequestInterface to clear its cache after each request.

Public Methods

  • addProductId()
  • getAttributesByProductId()
  • getAttributes()
  • _resetState()