How To Get Customer’s Wish List Items By Using GraphQL in Magento 2.x / Adobe Commerce 2.x

The following below steps need to follow to get Customer’s Wishlist Items By Using GraphQL in Magento 2.x / Adobe Commerce 2.x

Step [1] – Recommendation to use below Customer’s Wishlist Items syntax

Here Using Postman

Syntax –

wishlist: WishlistOutput

Step [2] – Put below Request

{
  wishlist {
    items_count
    name
    sharing_code
    updated_at
    items {
      id
      qty
      description
      added_at
      product {
        sku
        name
      }
    }
  }
}

Step [3] – Below output response

{
    "data": {
        "wishlist": {
            "items_count": 1,
            "name": "Wish List",
            "sharing_code": "R1zBLP1xfpM7Q0ECrW8svzW1T4VQYlZK",
            "updated_at": "2022-09-27 20:42:30",
            "items": [
                {
                    "id": 12,
                    "qty": 1,
                    "description": null,
                    "added_at": "2022-11-01 14:21:53",
                    "product": {
                        "sku": "24-MB01",
                        "name": "Joust Duffle Bag"
                    }
                }
            ]
        }
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *