Model
Discounts
Magento\QuoteGraphQl\Model\Resolver\Discounts
What it does
This GraphQL resolver fetches discount information for a shopping cart (quote) in Magento's GraphQL API.
Developers use this class when they need to retrieve applied discounts on cart items and shipping through GraphQL queries, making discount data available to headless or PWA storefronts.
Public Methods
- resolve()