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

Gatsby source plugin for building websites using the Datenguide API

License

Notifications You must be signed in to change notification settings

datenguide/gatsby-source-datenguide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ 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
}

About

Gatsby source plugin for building websites using the Datenguide API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published