Model
AppliedCoupon
Magento\QuoteGraphQl\Model\Resolver\AppliedCoupon
What it does
This GraphQL resolver retrieves the applied coupon code for a shopping cart in Magento 2's GraphQL API.
Developers use this class when implementing GraphQL queries that need to display which discount coupon is currently applied to a customer's cart, returning the coupon code or null if no coupon is active.
Public Methods
- resolve()