Skip to main content

wishlistAddVariant

Add product variant to the current user's wishlist.

wishlistAddVariant(
userId: ID
variantId: ID!
wishlistId: ID
): WishlistAddProductVariant

Arguments

wishlistAddVariant.userId ● ID scalar

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

wishlistAddVariant.variantId ● ID! non-null scalar

The ID of the product variant.

wishlistAddVariant.wishlistId ● ID scalar

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

Type

WishlistAddProductVariant object

Add product variant to the current user's wishlist.

Was this page helpful?