Log in
Model

CreditMemoItem

Magento\SalesGraphQl\Model\TypeResolver\CreditMemoItem

What it does

This class resolves the concrete GraphQL type for credit memo items based on the product type.

It's used by Magento's GraphQL API to determine which specific type (like BundleCreditMemoItem, DownloadableCreditMemoItem, etc.) should be returned when querying credit memo items, ensuring the correct fields are available for each product type.

Public Methods

  • resolveType()