Model
CreateEmptyCart
Magento\QuoteGraphQl\Model\Resolver\CreateEmptyCart
What it does
This GraphQL resolver creates a new empty shopping cart for both guest customers and logged-in users.
Developers use this class when implementing the GraphQL createEmptyCart mutation, which is the first step in building a cart-based checkout flow.
It handles both scenarios: creating anonymous carts for guests and associating carts with authenticated customer accounts.
Public Methods
- resolve()