Query an external REST API that returns big, hard to manage XML files and format response into JSON
- An API key from https://www.goodreads.com/
- NodeJS >= v8.1.5
yarn
[optional]
- Checkout this repository
- run
yarn
ornpm install
- execute server using
APIKEY=<goodreads api key> node serve.js
- Play around with API on
localhost:4000/graphql
Query an author's name
query {
author(id: 4432) {
name
}
}
Query an author's books
query {
author(id: 4432) {
books { isbn, title }
}
}