Skip to content

theearthman81/brewerydb-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍺 BreweryDB graphQL

GraphQL wrapper around the BreweryDB API.

How to use it

Set an environmental variable of API_KEY to your 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
          }
        }
      }
    }
  }
}

Releases

No releases published

Packages

No packages published