Model
GetItemsData
Magento\QuoteGraphQl\Model\CartItem\GetItemsData
What it does
This class transforms an array of cart items into a structured data format suitable for GraphQL responses.
It enriches each cart item with product information, generates UIDs for both cart items and products, and handles cases where products don't exist.
Developers use this when building GraphQL resolvers that need to return cart item data with complete product details.
Public Methods
- execute()