Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-source-sylius

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-sylius

Gatsby source for Sylius Shop API

  • 0.4.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-source-sylius

A Gatsby source plugin for sourcing data from Sylius via the ShopApiPlugin.

Install

npm install --save gatsby-source-sylius

How to use

// In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-sylius`,
      options: {
        syliusUrl: `https://{{your-sylius-url}}`,
        mainTaxonCode: `category`,
      },
    },
  ],
};

Options

syliusUrl

The url to your Sylius shop

attributeDefinitions

If you want to access Attributes, you need to declare the associated GraphQL types.

For example :

// In gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-sylius`,
      options: {
        syliusUrl: `https://{{sylius-url}}`,
        mainTaxonCode: `category`,
        attributeDefinitions: `
          type Attributes {
            photographer: String
            unsplash_url: String
          }
        `,
      },
    },
  ],
};

Thoses types will be included direcly in the schema, so you can declare complex types if needed.

License

MIT

FAQs

Package last updated on 17 Jun 2020

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc