Log in
Model

AddToCart

Magento\WishlistGraphQl\Model\Resolver\Wishlist\AddToCart

What it does

This resolver handles adding wishlist items to a customer's shopping cart via GraphQL API.

Developers use this when implementing GraphQL mutations that allow customers to move products from their wishlist to their cart, with support for multiple items, error handling, and automatic wishlist cleanup after successful addition.

Public Methods

  • resolve()