Inspired on https://github.com/lucasbento/graphql-pokemon/ !!!
Thanks @lucasbento!
Simply get Pokémon's information through queries in GraphQL, example:
query {
pokemon(name: "pikachu") {
id
number
name
attacks {
special {
name
type
damage
}
}
evolutions {
id
number
name
weight {
minimum
maximum
}
attacks {
fast {
name
type
damage
}
}
}
}
}
go build -o pokemon-gopher
./pokemon-gopher
go run .
This was built as part of a talk on GraphQL with GoLang at @GraphQL-SP meetup, check us out, we build cool stuff. ;)