Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

Latest commit

 

History

History
executable file
·
42 lines (31 loc) · 1008 Bytes

README.md

File metadata and controls

executable file
·
42 lines (31 loc) · 1008 Bytes

⚠️ This plugin is deprecated and no longer maintained

This plugin is no longer needed for using the Datenguide API within Gatsby, as Gatsby now supports 3rd party GraphQL APIs out of the box via the gatsby-source-graphql.

See the datenguide-frontend Gatsby configuration for an example of how to use gatsby-source-graphql with the Datenguide API.


Plugin for pulling data into Gatsby from the Datenguide API

Install

yarn add gatsby-source-datenguide

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-source-datenguide',
    options: {
      queryUrl: 'http://127.0.0.1:5000/\?query\=',
    }
  }
];

How to query

You can query nodes created from Datenguide like the following:

query StoriesQuery {
  allDistrict
}