scandipwa / wishlist-graphql
N/A
Installs: 207 849
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 12
Type:magento2-module
Requires
- magento/framework: *
- magento/module-catalog: *
- magento/module-catalog-graph-ql: *
- magento/module-catalog-inventory: *
- magento/module-configurable-product: *
- magento/module-customer: *
- magento/module-store: *
- magento/module-wishlist: *
- magento/module-wishlist-graph-ql: ^100.3
- scandipwa/performance: ^1.0
This package is auto-updated.
Last update: 2025-03-12 11:30:42 UTC
README
WishlistGraphQl provides additional resolvers for wishlist, extending Magento_WishlistGraphQl.
SaveWishlistItem
This endpoint allows to save Wishlist item
mutation SaveWishlistItem($wishlistItem: WishlistItemInput!) { saveWishlistItem(wishlistItem: $wishlistItem) { id sku qty description added_at product } }
{ "wishlistItem": { "sku": "n31189077-1", "quantity": 2, "description": "Description", "product_option": { "extension_attributes": {} } } }
RemoveProductFromWishlist
This endpoint allows removing item from wishlist
mutation RemoveProductFromWishlist($item_id: ID!) { removeProductFromWishlist(item_id: $item_id) }
{ "item_id": 1 }
MoveWishlistToCart
This endpoint allows to move all wishlist items to cart
mutation MoveWishlistToCart { moveWishlistToCart() }
ClearWishlist
This endpoint allows to clear wishlist
mutation ClearWishlist { clearWishlist() }