Magidoc

wishlistAddVariant
Mutation

Add product variant to the current user's wishlist.

Arguments

#

userId

ID of the target user (available only for MPO). If not provided, the variant will be added to the requester's wishlist.

variantId

ID !
Non-null

The ID of the product variant.

wishlistId

ID of the target wishlist. If not provided, the product will be added to the default wishlist.

Response

#

Returns WishlistAddProductVariantMutation .

Example

#