brewerydb-graphql
v1.0.2
Published
GraphQL wrapper around the [BreweryDB API](http://www.brewerydb.com/developers/docs).
Downloads
4
Maintainers
Readme
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
}
}
}
}
}
}