moltin / gatsby-source-moltin

🚀 Gatsby source plugin for building Elastic Path Commerce Cloud powered eCommerce websites
https://www.gatsbyjs.org/packages/@moltin/gatsby-source-moltin
MIT License
21 stars 4 forks source link
gatsby gatsby-plugin gatsby-source-plugin moltin

Elastic Path Commerce Cloud gatsby-source-moltin

Stable Branch License: MIT contributions welcome follow on Twitter

🚀 Gatsby source plugin for building Elastic Path Commerce Cloud powered eCommerce websites.

Install

yarn add @moltin/gatsby-source-moltin

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `@moltin/gatsby-source-moltin`,
    options: {
      client_id: '...'
    },
  },
],

How to query

{
  allMoltinProduct {
    edges {
      node {
        id
        name
        description
        slug
        sku
        categories {
          id
          name
        }
      }
    }
  }
}

Terms And Conditions