Log in
Model

AddSimpleProductsToCart

Magento\QuoteGraphQl\Model\Resolver\AddSimpleProductsToCart

What it does

This GraphQL resolver handles adding simple products to a shopping cart through the GraphQL API.

Developers use this class when implementing the addSimpleProductsToCart mutation, which allows customers to add one or more simple products to their cart with specified quantities.

It validates input parameters, retrieves the cart, and delegates the actual product addition to the AddProductsToCart service while using a mutex to prevent concurrent cart modifications.

Public Methods

  • resolve()