1.0.2 • Published 7 years ago

brewerydb-graphql v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Brewery graphQL

GraphQL wrapper around the BreweryDB API.

How to use it

Set an environmental variable of API_KEY to you Brewerydb API key, acquired here, and run yarn start:dev for the development version with the graphiql interface.

Example query

{
  search(q: "punk ipa", type: beer) {
    currentPage
    data {
      ... on Beer {
        id
        name
        abv
        glass {
          name
        }
        breweries {
          name
        }
        style {
          category {
            name
          }
        }
      }
    }
  }
}