[EXTREMELY ALPHA VOICE]: Not ready for public consumption yet
Install
Yarn:
yarn add @oliverturner/gatsby-source-trello
npm:
npm install --save @oliverturner/gatsby-source-trello
How to use
- Create a Trello user and add them to the boards you want to work with
- Add their API key and to the plugin options
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-source-trello',
options: {
apiKey: process.env.TRELLO_KEY,
apiToken: process.env.TRELLO_TOKEN
}
},
]
How to query
It creates 3 different nodes: TrelloBoard
, TrelloList
, TrelloCard
Querying all boards
{
allTrelloBoard {
edges {
node {
id
name
}
}
}
}
Querying all lists
{
allTrelloList {
edges {
node {
id
name
}
}
}
}
Querying all cards
{
allTrelloCard {
edges {
node {
id
name
}
}
}
}