Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

gatsby-source-shopfiy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-shopfiy

Gatsby source plugin for building websites using Shopfiy as a data source

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

gatsby-source-shopify

Source plugin for pulling product data into Gatsby from a Shopify store.

Note: This is not a feature-complete source plugin. Please submit a pull request and/or open an issue for improvements you feel are necessary. Thanks!

Install

npm install --save gatsby-source-shopify

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-shopify`,
    options: {
      name: `your_shop_name`,
      token: `your_access_token`,
    },
  },
]

How to query

You can query nodes created from Shopify like the following:

{
  allProductNode {
    edges {
      node {
        id
        title
      }
    }
  }
}

Utilize Gatsby's built-in GraphiQL IDE to explore the node schemas available.

Keywords

gatsby

FAQs

Package last updated on 24 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts