Log in
Model

SetShippingMethodsOnCart

Magento\QuoteGraphQl\Model\Resolver\SetShippingMethodsOnCart

What it does

This GraphQL resolver handles the mutation for setting shipping methods on a shopping cart.

Developers use this class when implementing the GraphQL API endpoint that allows customers to select and apply shipping methods during checkout.

It validates the cart and shipping method input, retrieves the user's cart, checks if checkout is allowed, and applies the selected shipping methods.

Public Methods

  • resolve()