Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Latest commit

 

History

History
50 lines (42 loc) · 1.82 KB

File metadata and controls

50 lines (42 loc) · 1.82 KB

Explore Magento's GraphQL with GraphiQL

Overview

To work with Magento and PWA Studio you need be familiar with their GraphQL API. Below step by step instructions to introduce you to Magento's GraphQL.

  1. If you're not familiar with GraphQL or GraphiQL read this short article on medium.
  2. Install the ChromeiQL browser extension.
  3. Set it to use a public Magento GraphQL endpoint.
    https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/graphql
  4. Explore the docs section to see what queries and mutations are currently available in Magento's GraphQL API.
  5. Run the following query:
{
  category(
    id: 10
  ) {
    url_key
    products{
      items {
        name
      }
    }
  }
}
  1. Compare Magento's GraphiQL docs to their Swagger REST docs.
  2. Check to see what GraphQL queries the venia storefront demo is using by looking at the chrome network tab. chrome network tab
  3. Try using one of these queries in GraphiQL.

Learn more