List of GraphQL Queries and Mutations for Magento 2
As we all know now in a day most of our customers want to create their website with headless solutions as well as Android/iPhone mobile applications and for that developers have to use any API for fetch data.
Now, In a day we all know GraphQL is a very powerful query language and its more flexible & efficient than REST API.
Magento 2 by default provides most of GraphQL Queries and Mutations. But, sometimes it's difficult for some developers to understand how to use GraphQL Queries and Mutations. So, we have prepared a list of all the useful GraphQL queries and mutations for headless and mobile commerce solutions.
Check the following list of GraphQL Queries and Mutations for Magento 2.
Store Configurations
Homepage
CMS Page and Block
Category
- How to get Category List using GraphQL in Magento 2
- How to get Category Product Collection using GraphQL in Magento 2
- How to get Layered Navigation Data like color, size, etc using GraphQL in Magento 2
- How to get Breadcrumb Information about Categories using GraphQL in Magento 2
Products
- How to get SimpleProducts using GraphQL in Magento 2
- How to get Products with CustomOptions using GraphQL in Magento 2
- How to get ConfigurableProduct using GraphQL in Magento 2
- How to get DownloadableProduct using GraphQL in Magento 2
- How to get GroupedProduct using GraphQL in Magento 2
- How to get BundleProduct using GraphQL in Magento 2
- How to get RelatedProducts using GraphQL in Magento 2
- How to get UpsellProducts using GraphQL in Magento 2
- How to get CrosssellProducts using GraphQL in Magento 2
Country and Currency
- How to get Country and List of the Country using GraphQL in Magento 2
- How to get Currency using GraphQL in Magento 2
Shopping Cart
- How to create Cart Ready for Checkout using GraphQL in Magento 2
- How to add Products (For All Type) in the Cart using GraphQL in Magento 2
- How to createEmptyCart, updateCartItems and removeCartItems using GraphQL in Magento 2
- How to apply and remove the Coupon to Cart using GraphQL in Magento 2
- How to set the Shipping and Billing Address on the Cart using GraphQL in Magento 2
- How to set Shipping Method on the Cart in GraphQL in Magento 2
- How to set Payment Method on the Cart in GraphQL in Magento 2
- How to set Guest Email on the Cart using GraphQL in Magento 2
Checkout
- How to retrieves Checkout agreements using GraphQL in Magento 2
- How to place an Order using GraphQL in Magento 2
My Account
- How to generate Customer Token and get Customer Information using GraphQL in Magento 2
- How to create and update Customer using GraphQL in Magento 2
- How to change Customer Password using GraphQL in Magento 2
- How to get Cart Information from Login Customer using GraphQL in Magento 2
- How to get Purchased Customer’s Downloadable Products using GraphQL in Magento 2
- How to create, update and delete Customer Address using GraphQL in Magento 2
- How to get Customer’s Order List using GraphQL in Magento 2
That's it!!
For more detail please check Magento 2 official GraphQL Developer Guide.
I hope this article helps you to find what you were looking for.
Bookmark it for your future reference. Do comment below if you have any other questions on that.
P.S. Do share this article with your team.