Model
CartErrorTypeResolver
Magento\QuoteGraphQl\Model\Resolver\CartErrorTypeResolver
What it does
This class resolves the specific GraphQL error type to return when cart operations fail.
Developers use this resolver to differentiate between insufficient stock errors (when quantity is available but insufficient) and general user input errors in GraphQL cart mutations, enabling more precise error handling in the API response.
Public Methods
- resolveType()