Log in
Model

AppliedCoupons

Magento\QuoteGraphQl\Model\Resolver\AppliedCoupons

What it does

This GraphQL resolver retrieves applied coupon codes for a shopping cart.

Developers use this class when implementing GraphQL queries that need to display which discount coupons are currently applied to a customer's quote/cart.

It returns an array of coupon codes or null if no coupons are applied.

Public Methods

  • resolve()