Model
AddProductsToCart
Magento\QuoteGraphQl\Model\Cart\AddProductsToCart
What it does
This class handles adding multiple products to a shopping cart through GraphQL API requests.
Developers use this when implementing custom GraphQL mutations or extending Magento's cart functionality to process batches of cart items, iterating through each product and delegating to AddSimpleProductToCart before persisting the cart.
Public Methods
- execute()