Source plugin for pulling documents into Gatsby from a KDC CMS API.
Note: THIS PROJECT IS NOW DISCONTINUTED IN FAVOR OF Abu CMS!
npm install --save gatsby-source-kdc-cms
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-source-kdc-cms`,
options: {
apiURL: `http://localhost:8101`,
queryLimit: 100, // Default to 100
contentTypes: [`pages`, `contents/blog`], // these are your content type id
jwtToken: process.env.KDC_CMS_TOKEN
}
}
];
You can query Document nodes created from your KDC CMS API like the following:
{
allKdccmsBlog {
edges {
node {
id
title
subtitle
}
}
}
}
For a full working example using this plugin, see gatsby-blog-kdc-cms