Log in
Model

CartItems

Magento\QuoteGraphQl\Model\Resolver\CartItems

What it does

This resolver fetches and formats cart items for GraphQL queries requesting shopping cart contents.

Developers use this when building GraphQL APIs that need to return a customer's cart items with properly structured data including UIDs and item details.

It retrieves all visible items from a quote/cart model and transforms them into a GraphQL-compatible format.

Public Methods

  • resolve()