Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scandipwa/wishlist-graphql
Missing wishlist endpoints from M2
https://github.com/scandipwa/wishlist-graphql
Last synced: 14 days ago
JSON representation
Missing wishlist endpoints from M2
- Host: GitHub
- URL: https://github.com/scandipwa/wishlist-graphql
- Owner: scandipwa
- License: osl-3.0
- Created: 2019-05-08T08:02:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-12T07:37:22.000Z (over 1 year ago)
- Last Synced: 2024-09-21T12:57:26.620Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 76.2 KB
- Stars: 3
- Watchers: 6
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScandiPWA_WishlistGraphQl
**WishlistGraphQl** provides additional resolvers for wishlist, extending Magento_WishlistGraphQl.
### SaveWishlistItem
This endpoint allows to save Wishlist item
```graphql
mutation SaveWishlistItem($wishlistItem: WishlistItemInput!) {
saveWishlistItem(wishlistItem: $wishlistItem) {
id
sku
qty
description
added_at
product
}
}
``````json
{
"wishlistItem": {
"sku": "n31189077-1",
"quantity": 2,
"description": "Description",
"product_option": {
"extension_attributes": {}
}
}
}
```### RemoveProductFromWishlist
This endpoint allows removing item from wishlist
```graphql
mutation RemoveProductFromWishlist($item_id: ID!) {
removeProductFromWishlist(item_id: $item_id)
}
``````json
{
"item_id": 1
}
```### MoveWishlistToCart
This endpoint allows to move all wishlist items to cart
```graphql
mutation MoveWishlistToCart {
moveWishlistToCart()
}
```### ClearWishlist
This endpoint allows to clear wishlist
```graphql
mutation ClearWishlist {
clearWishlist()
}
```