@oliverturner/gatsby-source-trello

2.0.0 • Public • Published

[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

  1. Create a Trello user and add them to the boards you want to work with
  2. 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
      }
    }
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @oliverturner/gatsby-source-trello

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

11.4 kB

Total Files

3

Last publish

Collaborators

  • oliverturner