Gatsby plugin for accessing your Cloud CMS projects
npm install gatsby-source-cloudcmsSource plugin for adding your cloudcms content and attachments into your Gatsby.js site
```
npm install gatsby-source-cloudcms
or
yarn add gatsby-source-cloudcms
`js
// In your gatsby-config.js
const gitanaJson = require('./gitana.json');
module.exports = {
plugins: [
{
resolve: gatsby-source-cloudcms,myRepositoryId
options: {
keys: gitanaJson,
repositoryId: ,myBranchId
branchId: `
}
}
]
}
Note that you will need to provide API Keys to cloudcms, as well as a
repositoryId and branchId (Help).
You can additionally provide a contentQuery to options with MongoDB syntax to specify what subset of your content to source. store:book
For example, if my site only contained content of type and store:author, I could use the following contentQuery:
```
{
"_type": {
"$in": ["store:book", "store:author"]
}
}