Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-source-ecwid

Gatsby source plugin for fetching api in ecwid

Install

yarn add gatsby-source-ecwid

How to use

// In your gatsby-config.js
plugins: [
    {
      resolve: "gatsby-source-ecwid",
      options: {
        storeId: "...",
        token: "...",
        endpoints: {
          EcwidProducts: "products",
          EcwidCategories: "categories",
        },
      },
    }
  ],

How to query

You can query Document nodes created from your Ecwid API like the following:

{
  allEcwidProducts {
    nodes {
      id
      name
      price
      description
      imageUrl
    }
  }
}
© 2023 Gatsby, Inc.