Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukehorvat/graphql-trello
GraphQL interface to Trello's API.
https://github.com/lukehorvat/graphql-trello
api graphql trello
Last synced: 15 days ago
JSON representation
GraphQL interface to Trello's API.
- Host: GitHub
- URL: https://github.com/lukehorvat/graphql-trello
- Owner: lukehorvat
- License: mit
- Created: 2017-02-02T11:13:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-13T14:38:32.000Z (almost 7 years ago)
- Last Synced: 2025-01-23T15:14:03.482Z (19 days ago)
- Topics: api, graphql, trello
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 18
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graphql-trello [![NPM version](http://img.shields.io/npm/v/graphql-trello.svg?style=flat-square)](https://www.npmjs.org/package/graphql-trello)
[GraphQL](http://graphql.org) interface to [Trello](https://trello.com)'s API.
## Installation
Install the package with NPM:
```bash
$ npm install graphql-trello
```## Usage
Example:
```javascript
import graphqlTrello from "graphql-trello";let query = `
query($boardId: String!) {
getBoard(boardId: $boardId) {
id
name
lists {
id
name
cards {
id
name
comments {
id
content
}
}
}
members {
id
username
}
}
}
`;graphqlTrello({
query,
variables: { boardId: "TRELLO_BOARD_ID" },
key: "TRELLO_KEY",
token: "TRELLO_TOKEN",
}).then(data => {
let board = data.getBoard;
console.log(board);
}).catch(error => {
console.error(error);
});
```See the [examples](examples) directory for more!
## Related
Check out my other Trello packages:
- [create-trello-webhook](https://github.com/lukehorvat/create-trello-webhook)
- [delete-trello-webhook](https://github.com/lukehorvat/delete-trello-webhook)
- [verify-trello-webhook](https://github.com/lukehorvat/verify-trello-webhook)
- [get-trello-board](https://github.com/lukehorvat/get-trello-board)