Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Exploring GraphQL while trying to create a schema for Pokemon go!

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.