SuperAttributeDataProvider
Magento\ConfigurableProductGraphQl\Model\Cart\BuyRequest\SuperAttributeDataProvider
What it does
This class prepares configurable product option data (super attributes) when adding items to the cart via GraphQL.
It validates that the selected child product belongs to the parent configurable product, checks stock availability, and builds the required super_attribute array for the buy request.
Developers use this when implementing custom GraphQL cart functionality for configurable products.
Public Methods
- execute()