Model
RowCatalogDiscount
Magento\QuoteGraphQl\Model\Resolver\RowCatalogDiscount
What it does
This resolver calculates and returns catalog-level discounts for cart items in GraphQL queries.
It compares the original item price with the current price, multiplying both by quantity to determine the total row discount.
Developers use this to expose catalog price rule discounts (like tier pricing or special prices) for individual cart line items in the GraphQL API.
Public Methods
- resolve()