gatsby-source-ecwid

1.0.3 • Public • Published

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
    }
  }
}

/gatsby-source-ecwid/

    Package Sidebar

    Install

    npm i gatsby-source-ecwid

    Weekly Downloads

    5

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    2.89 kB

    Total Files

    4

    Last publish

    Collaborators

    • ardie