Skip to main content

wishlistAddProduct

Add product to the current user's or target user's wishlist.

wishlistAddProduct(
productId: ID!
userId: ID
wishlistId: ID
): WishlistAddProduct

Arguments

wishlistAddProduct.productId ● ID! non-null scalar

The ID of the product.

wishlistAddProduct.userId ● ID scalar

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

wishlistAddProduct.wishlistId ● ID scalar

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

Type

WishlistAddProduct object

Add product to the current user's or target user's wishlist.

Was this page helpful?