Exploring GraphQL while trying to create a schema for Pokemon go!
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
scripts
.babelrc
.gitignore
README.md
index.js
package.json
schema.js
server.js

README.md

pokemongo-graphQL

Check out the blog post! This project contains a basic implementation of a GraphQL Schema for PokemonGo. It supports querying for pokemon and moves. If you don't want to clone the project, it's hosted using now.sh here.

Starting up the project

  • Clone the repository into a local folder.
  • If you don't have Node installed, install it here.
  • Run npm install to install the dependencies for this project.
  • Run npm start to start the server. You should be able to access a GraphQL IDE at http://localhost:3000/graphql, as the command line will tell you.
  • Run a few queries and explore the schema!

Example queries:

  • Query for pokemon a pokemon with a ceratin id (1-5), and get its name, thumbnail URL, favorite move, and best friend:
query pokemonQuery($id: String) {
  pokemon(id: $id) {
    name
    thumbnail
    favoriteMove {
      name
    }
    bestFriend {
      name
    }
  }
}