Package Exports
- gatsby-source-graphql
- gatsby-source-graphql/gatsby-node
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gatsby-source-graphql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gatsby-source-graphql
A Gatsby source plugin for pulling in data from GraphQL APIs.
Installation
Yarn
$ yarn add --dev gatsby-source-graphql
npm
$ npm install --save-dev gatsby-source-graphql
Usage
With gatsby-source-filesystem
// gatsby-config.js
module.exports = {
// ...
plugins: [
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'queries',
path: `${__dirname}/src/queries/`,
},
},
{
resolve: 'gatsby-source-graphql',
options: {
headers: {
authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
},
url: 'https://api.github.com/graphql',
},
},
]
}
Change Log
v1.0.0 (2018-05-06)
- [
bc71c4baf4
] - Initial commit (Neil Kistner)
License
MIT © Neil Kistner