Log in
Model

OrderItem

Magento\SalesGraphQl\Model\TypeResolver\OrderItem

What it does

This class resolves the concrete GraphQL type for order items based on their product type (simple, configurable, bundle, etc.).

Developers use this when extending Magento's GraphQL API to map custom product types to their corresponding GraphQL types in order queries, ensuring the correct type is returned for each order item.

Public Methods

  • resolveType()