Log in
Model

Cart

Magento\QuoteGraphQl\Model\Resolver\Cart

What it does

This resolver handles GraphQL queries for retrieving shopping cart data.

Developers use this class when implementing the 'cart' GraphQL query, which fetches cart information based on a masked cart ID.

It validates the cart_id parameter, retrieves the cart for the current user and store, and returns the cart model for further GraphQL field resolution.

Public Methods

  • resolve()