How to fetch Product Image URLs using GraphQl Magento 2?

You can fetch the product images like Main Image, Thumbnail, Small Image, and Media Gallery Images 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 Image URLs using GraphQl Magento 2?”

How to fixed GraphQl Fields conflicting types. Use different aliases on the fields to fetch result?

GraphQl aliases are used to prevent errors of GraphQL fields conflict type in the response of the query.

Using Aliases in the query to fix the issue of the conflicting type of GraphQl while same type of  arguments are used in a query.

Let’s say a real example to understand these aliases. Continue reading “How to fixed GraphQl Fields conflicting types. Use different aliases on the fields to fetch result?”

How to Get Customer Orders List By GraphQL Query Magento 2?

Retrieve Customer Orders list using GraphQL Query in Magento display all the previous orders placed by the customer.

Using Customer Orders Query, get all the order related information with GraphQL.

schema.graphql file for the orders will be defined at, vendor/magento/module-sales-graph-ql/etc/schema.graphqls Continue reading “How to Get Customer Orders List By GraphQL Query Magento 2?”