Log in
Model

AssignCustomerToGuestCart

Magento\QuoteGraphQl\Model\Resolver\AssignCustomerToGuestCart

What it does

This GraphQL resolver assigns a logged-in customer to an existing guest shopping cart, effectively merging the guest cart with the customer's account.

Developers use this when implementing customer login flows in GraphQL storefronts where a guest user had items in their cart before authenticating.

It validates customer authorization, performs the cart assignment, and returns the updated customer cart.

Public Methods

  • resolve()