AddProductsToWishlist
Magento\WishlistGraphQl\Model\Resolver\AddProductsToWishlist
What it does
This GraphQL resolver handles adding products to a customer's wishlist through the GraphQL API.
Developers use this class when implementing wishlist functionality in headless or PWA storefronts, allowing authenticated users to add multiple products to their wishlist via GraphQL mutations.
It validates user authentication, wishlist ownership, and returns both the updated wishlist and any errors encountered during the operation.
Public Methods
- resolve()