Name: gatsby-source-tune
Owner: TABLEFLIP
Description: Gatsby plugin to expose TUNE data as GraphQL sources
Created: 2017-11-06 16:46:31.0
Updated: 2017-11-06 16:47:51.0
Pushed: 2017-11-07 16:32:21.0
Homepage: null
Size: 103
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Gatsby plugin to expose TUNE data as GraphQL nodes.
Creates Facts
and Content
nodes and FactsSchema
and Schema
nodes.
npm install --save gatsby-source-tune
n your gatsby-config.js
ins: [
resolve: 'gatsby-source-tune',
options: {
name: 'tune',
path: `${__dirname}/` // Default process.cwd()
}
You can query file nodes like the following:
cts {
some
facts
props
ctsSchema {
some
schema
props
meContent: content(page: { eq: "home" }) {
content
for
home
page
meSchema: schema(page: { eq: "home" }) {
schema
for
home
page
outContent: content(page: { eq: "about" }) {
content
for
about
page
outSchema: schema(page: { eq: "about" }) {
schema
for
about
page