AddProductsToCart
Magento\QuoteGraphQl\Model\Resolver\AddProductsToCart
What it does
This resolver handles the GraphQL mutation for adding multiple products to a shopping cart simultaneously.
Developers use this class when implementing or extending the addProductsToCart GraphQL endpoint, which allows customers to add one or more products to their cart in a single request.
It ensures thread-safe cart operations using a mutex lock to prevent race conditions during concurrent cart updates.
Public Methods
- resolve()