racerxdl / pokemon-gopher

GraphQL with Golang Example

Home Page:https://www.teske.net.br/lucas/palestras/GraphQLSP01/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. ;)

About

GraphQL with Golang Example

https://www.teske.net.br/lucas/palestras/GraphQLSP01/

License:Apache License 2.0


Languages

Language:Go 100.0%