Source plugin for pulling data into Gatsby from Trello using team
.
npm install --save gatsby-source-trello
Use organization id
or name
for fetching data from the Trello API.
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-source-trello',
options: {
teamId: `your_team_id/name`,
apiKey: `your_trello_access_token`,
secret: `your_trello_secret`
}
},
]
It creates 3 different nodes: TrelloBoard
, TrelloList
, TrelloCard
{
allTrelloBoard {
edges {
node {
id
name
}
}
}
}
{
allTrelloList {
edges {
node {
id
name
}
}
}
}
{
allTrelloCard {
edges {
node {
id
name
}
}
}
}