Skip to content

Wishlist ​

The Wishlist menu lets a signed-in customer save products for later. A client uses it to power the "save to wishlist" heart icon, the wishlist page, and the "move to cart" action.

When you use it ​

The wishlist is per-customer and scoped to the current channel. A customer can add a product (or toggle it on and off), list everything saved, view one item, move an item into the cart, remove an item, or clear the whole wishlist at once. The wishlist is a customer feature — it is not available to guests.

Operations ​

OperationGraphQL fieldDescription
List the wishlistwishlistsThe customer's saved products, paginated.
View one itemwishlistA single wishlist entry.
Add a productcreateWishlistSave a product to the wishlist.
Toggle a producttoggleWishlistAdd the product if absent, remove it if present.
Remove an itemdeleteWishlistDrop one saved product.
Move to cartmoveWishlistToCartMove a saved product into the cart. Returns the updated cart.
Clear the wishlistcreateDeleteAllWishlistsRemove every saved product in one call.

Toggling reports a removal through errors[] rather than a success payload — see Toggle Wishlist before wiring a heart icon to it.

Every product returned by the catalog also carries an isInWishlist flag, so a listing page can show the saved state without reading the wishlist separately.

All Wishlist operations require a customer Bearer token — see Authentication.

Released under the MIT License.