DeleteCompareList
Magento\CompareListGraphQl\Model\Resolver\DeleteCompareList
What it does
This class handles the GraphQL mutation for deleting a compare list in Magento 2.
Developers use this resolver when implementing the deleteCompareList GraphQL endpoint, which allows customers or guests to remove their product comparison lists.
It validates the provided list UID, ensures proper authorization (customers can only delete their own lists), and removes the compare list from the database.
Public Methods
- resolve()