Socket
Book a DemoInstallSign in
Socket

gatsby-source-zesty

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-zesty

Source plugin to get Zesty.io data in Gatsby sites

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

Gatsby Source Zesty

Source plugin to get Zesty.io data in Gatsby sites

Installation

# Install the plugin
yarn add gatsby-source-zesty

in gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-zesty',
      options: {
        url: `https://your-zesty-instance.com/-/gql/`,
      },
    },
    ...
  ],
};

Configuration options

Your Zesty.io GraphQL endpoint URL is required. To turn this on you can follow these steps:

  • Log into Zesty.io
  • Open the manager interface for the instance you want to access GraphQL
  • In manager, Go to your Schema > settings area
  • Navigate to Developer settings
  • Click GraphQL to turn on
  • Set GraphQL origin to * (this can later be tied to your remote)

How to query

All content of a certain type

{
  allCategory {
    nodes {
      category
      description
    }
  }
}

Filtering

{
  allHomepage(filter: { data: { title: { eq: "the article I want" } } }) {
    nodes {
      data {
        image
        title
        content
      }
    }
  }
}

more information on GraphQL querying.

Keywords

gatsby

FAQs

Package last updated on 14 Jan 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

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.