You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gatsby-source-shopify

Package Overview
Dependencies
Maintainers
1
Versions
601
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-shopify

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

0.1.3
Source
npmnpm
Version published
Weekly downloads
4K
-5.07%
Maintainers
1
Weekly downloads
 
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

Add the following plugin config to your gatsby-config.js file.

// 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.

List of implemented nodes

NameDescription
CollectionNodeRepresents a grouping of products that a shop owner can create to organize them or make their shops easier to browse.
ProductNodeRepresents an individual item for sale in a Shopify store.
ProductVariantNodeRepresents a different version of a product, such as differing sizes or differing colors.
ShopPolicyNodePolicy that a merchant has configured for their store, such as their refund or privacy policy.

Keywords

gatsby

FAQs

Package last updated on 12 Dec 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.