Home

Awesome

<p align="center"> <img src="https://github.com/lucasbento/graphql-pokemon/raw/master/content/logo.png"> </p> <h1 align="center">GraphQL Pokémon</h1> <p align="center"> Get information of a Pokémon with GraphQL!<br /> <a href="https://graphql-pokemon.now.sh/">See the GraphiQL interface</a> </p>

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

Try this query here!

Check out the React Relay Pokémon Project and Live Demo too!

Running

Production

yarn
yarn run build-app
yarn start

Development

yarn
yarn run watch # Using nodemon for auto-reloading

or

vercel dev # npm i -g @now/cli

Disclaimer

This was built as part of a talk on Relay & GraphQL at @ReactSP meetup, check us out, we build cool stuff. ;)

Related Projects