Model
Coupon
Magento\SalesRuleGraphQl\Model\Resolver\Coupon
What it does
This resolver retrieves coupon code information for GraphQL queries in Magento 2.
It handles requests for both order and quote contexts, matching coupon codes to specific discount rules applied to a cart or order.
Developers use this when building GraphQL queries that need to display which coupon was applied to a particular discount.
Public Methods
- resolve()