How to use selected_options and entered_options in GraphQL Query Magento 2?

What is the Difference between selected options vs entered options GraphQL keyword?
From the Magento version 2.4, You can see new architectural changes for the Data Transfer Object (DTO) will be used widely in GraphQL Query.

You have also marked new updates selected_options and entered_options in the GraphQL Query.

selected and entered options value must be base64_encode in the query and you can use this feature in add to cart and wishlist by GraphQL mutation. Continue reading “How to use selected_options and entered_options in GraphQL Query Magento 2?”

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?”