Skip to content

racerxdl/pokemon-gopher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokemon Gopher

Inspired on https://github.com/lucasbento/graphql-pokemon/ !!!

Thanks @lucasbento!

How to use

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
        }
      }
    }
  }
}

Running

Production

go build -o pokemon-gopher
./pokemon-gopher

Development

go run .

Disclaimer

This was built as part of a talk on GraphQL with GoLang at @GraphQL-SP meetup, check us out, we build cool stuff. ;)