Skip to content
Get information of a Pokémon with GraphQL!
Branch: master
Clone or download
Latest commit 493bb3d Aug 22, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
content
schemas
scripts Fix schema URL Oct 16, 2016
src Remove the need of everything wrapped into viewer Oct 23, 2016
.babelrc
.eslintrc
.gitignore Initial commit Oct 15, 2016
README.md
index.js Initial commit Oct 15, 2016
package.json chore(package): update eslint-config-airbnb to version 14.0.0 Jan 8, 2017
yarn.lock

README.md

GraphQL Pokémon

Get information of a Pokémon with GraphQL!
See the GraphiQL interface

How to use

Simply get Pokémon's information through queries in GraphQL, example:

{
  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
yarn start

Development

yarn
yarn run watch # Using nodemon for auto-reloading

Disclaimer

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

You can’t perform that action at this time.