AddProductsToCart
Magento\QuoteGraphQl\Model\AddProductsToCart
What it does
This class handles adding multiple products to a shopping cart through GraphQL mutations.
Developers use this when implementing or extending GraphQL cart functionality to process product additions, validate cart ownership, and return structured responses with cart data and any user-facing errors.
It serves as the business logic layer between GraphQL resolvers and Magento's core cart services.
Public Methods
- execute()