Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 586 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 586 Bytes

A simple GraphQL wrapper for the Goodreads API

Seeing as it was only for learning/concept purposes, this only wraps the authors endpoint.

Setup

export GOODREADS_API_KEY={YOUR_API_KEY}
git clone https://github.com/NoahCardoza/graphql-goodreads.git
cd graphql-goodreads
npm install
npm start

This will start a GraphiQL server at http://localhost:4000/graphql where you can send queries.

For example

{
  author(id: 160033) {
    name,
    books {
      id,
      title,
      isbn,
      authors {
        id,
        name
      }
    }
  }
}