-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Mac McCarthy edited this page Mar 17, 2020
·
1 revision
-
Sign up for API Key from Goodreads. Once you have it, I find that the easiest way to implement it is either using an
.env
(I used dotenv) file or maybe even a config.json file. -
Once you have this key, it will be called as part of every URL, like so:
let xmlResp = await this.get(this.baseURL + `author/show/${inputObject.authorId}?format=xml&key=${process.env.API_KEY}`)
- Run
node server.js
- Navigate to
http://localhost:4000/
on your browser and you will see GraphqQL Playground. - Try running the following query mutation:
{
author(name: "Stephen King") {
id
name
link
}
}