Model
InvoiceItem
Magento\SalesGraphQl\Model\TypeResolver\InvoiceItem
What it does
This class resolves the concrete GraphQL type for invoice items based on their product type.
When a GraphQL query requests invoice items, this resolver determines which specific GraphQL type (like BundleInvoiceItem, DownloadableInvoiceItem, etc.) should be returned based on the product type, enabling proper type-specific data serialization in the API response.
Public Methods
- resolveType()