How to Add Products to Wishlist By GraphQL Mutation Magento 2?

addProductsToWishlist mutation to add any type of products in the wishlist using GraphQL Mutation Magento 2.

Before adding with mutation, Make sure the Wishlist feature is activated by settings.
Go to Admin panel, Click Left sidebar Stores -> Configuration.
Now Click on Customers Tab -> Wish List -> General Options -> Enable -> Yes. Continue reading “How to Add Products to Wishlist By GraphQL Mutation Magento 2?”

How to get Wishlist GraphQL Query Magento 2?

Magento Wishlist supports the GraphQL query feature. You can refer to the module-wishlist-graph-ql from the Magento core code to get more info on the specific query feature.

The schema.graphql file for the Wishlist module will be available at the path, vendor/magento/module-wishlist-graph-ql/etc/schema.graphqls

You must have enabled the Wishlist feature to get the output of the query by Stores -> Configuration -> Customers -> Wish List -> General Options -> Enable -> Yes. Continue reading “How to get Wishlist GraphQL Query Magento 2?”

How to generate Customer token GraphQL Query Magento 2?

Generate Customer Token GraphQL mutation for any query that requires customer authentication to load data using GraphQL.

generateCustomerToken() mutation is used to create a token.

You just have to pass your email id and password to the mutation to create a customer token. Continue reading “How to generate Customer token GraphQL Query Magento 2?”