@libsrcdev/gatsby-source-github-graphql-discussions
v0.1.1
Published
A Gatsby source plugin for sourcing GitHub Discussions data using the GitHub GraphQL API. Must be used as a sub-plugin of `@libsrcdev/gatsby-source-github-graphql`.
Maintainers
Readme
gatsby-source-github-graphql-discussions
A Gatsby source plugin for sourcing GitHub Discussions data using the GitHub GraphQL API. Must be used as a sub-plugin of @libsrcdev/gatsby-source-github-graphql.
Installation
To install this package just run:
npm install @libsrcdev/gatsby-source-github-graphql-discussionUsage
In your gatsby-config.js:
{
resolve: `gatsby-source-github-graphql`,
options: {
// ...
plugins: [
{
resolve: `gatsby-source-github-graphql-discussions`,
options: {
owner: `libsrcdev`,
repo: `gatsby-blog-example`,
// Most likely to be an Announcements channel category, this way
// only users with repo write access can allow a post to be deployed.
categorySlugs: [`Published`],
// You can use this key to filter any resource.
// So you can use multiple instances of this plugin,
// keep the relationships and filter them.
key: `Post`
}
}
]
}
}