
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
gatsby-source-shopify
Advanced tools
Gatsby source plugin for building websites using Shopfiy as a data source
Source plugin for pulling product data into Gatsby from a Shopify store.
npm install --save gatsby-source-shopify
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`,
},
},
]
You can query nodes created from Shopify like the following:
{
allShopifyProductNode {
edges {
node {
id
title
}
}
}
}
Utilize Gatsby's built-in GraphiQL IDE to explore the node schemas available.
By default, this is at http://localhost:8000/___graphql
Name | Description |
---|---|
ArticleNode | A blog entry. |
BlogNode | Collection of articles. |
CollectionNode | Represents a grouping of products that a shop owner can create to organize them or make their shops easier to browse. |
ProductNode | Represents an individual item for sale in a Shopify store. |
ProductOptionNode | Custom product property names. |
ProductVariantNode | Represents a different version of a product, such as differing sizes or differing colors. |
ShopPolicyNode | Policy that a merchant has configured for their store, such as their refund or privacy policy. |
Not all Shopify nodes have been implemented as they are not necessary for the
static portion of a Gatsby-generated website. This includes any node that
contains sensitive customer-specific information, such as Order
and
Payment
.
If you are in need of this data (e.g. building a private, internal website), please open an issue. Until then, the nodes will not be implemented to lessen the chances of someone accidentally making private information publicly available.
FAQs
Gatsby source plugin for building websites using Shopify as a data source.
The npm package gatsby-source-shopify receives a total of 4,941 weekly downloads. As such, gatsby-source-shopify popularity was classified as popular.
We found that gatsby-source-shopify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.