AddProductsToCompareList
Magento\CompareListGraphQl\Model\Resolver\AddProductsToCompareList
What it does
This GraphQL resolver handles adding products to a customer's comparison list through the GraphQL API.
Developers use this class when implementing the 'addProductsToCompareList' mutation, which allows customers to add multiple products to their compare list by providing a list UID and product IDs.
It validates input parameters, converts the masked list ID to an internal ID, adds the products, and returns the updated comparison list.
Public Methods
- resolve()