Community Plugin
View plugin on GitHubgatsby-source-bigcommerce-crosslinked
This source plugin makes Big Commerce api data available in gatsby.js sites. Since the original plugin did not
Installation
# Install the plugin
yarn add gatsby-source-bigcommerce-crosslinked
in gatsby-config.js
module.exports = {
plugins: [
{
resolve: 'gatsby-source-bigcommerce-crosslinked',
options: {
...
}
}
]
};
Configuration options
follows node-bigcommerce api
example configuration:
options: {
// REQUIRED
clientId: 'yourClientID',
secret: 'YourClientSecret',
accessToken: 'yourAccessToken',
storeHash: 'yourSiteHash',
endpoint: '/catalog/products',
// OPTIONAL
logLevel: 'info',
nodeName: 'BigCommerceNode',
// Multiple endpoints in an object.
endpoints: {
BigCommerceProducts: "/catalog/products",
BigCommerceCategories: "/catalog/categories",
}
}
How to query
{
allBigCommerceNode {
edges{
node{
name
price
id
sku
}
}
}
}
credit
thanks to all the contributors to node-bigcommerce thanks to creator of original plugin gatsby-source-bigcommerce