Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 1.26 KB

File metadata and controls

36 lines (32 loc) · 1.26 KB

Explore Magento's GraphQL with GraphiQL

  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://release-dev-231-npzdaky-zddsyhrdimyra.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.