GraphQl Create Empty cart for registered customer Magento 2.

To Create an Empty cart for a logged-in customer by GraphQl in Magento, you need to use Mutation to generate a cart id.

The Response of the createEmptyCart GraphQl mutation used for the add item to the customer cart by passing cart Id in addProductsToCart Mutation. Continue reading “GraphQl Create Empty cart for registered customer Magento 2.”

How to subscribe Email To Newsletter mutation GraphQl Magento?

Magento Subscribe Email to Newsletter by GraphQl mutation used to dynamic subscribe email id to store newsletter.

You can create a mutation like the given, Continue reading “How to subscribe Email To Newsletter mutation GraphQl Magento?”

How to fetch product media gallery images URL using GraphQl Magento 2?

You can fetch the product media gallery images as well as the main Image, Thumbnail, Swatch Image, and Small Image URL by GraphQl.

You have to pass SKU in the product search query to get the product image URL.

GraphQl Query Request Body: Continue reading “How to fetch product media gallery images URL using GraphQl Magento 2?”