spearmootz / pokemon-graphql

a graphql pokemon server built with node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pokemon-graphql

a graphql pokemon server built with node

check it out at https://pokemon-graphql.herokuapp.com/ or hit it with requests at /graphql

Here is the query definition.

  pokemons: [Pokemon],
  pokemon(id: String, name: String): Pokemon

sample query

{
  pokemons {
    id
    name
    type
    height
    weight
    total
    hp
    attack
    defense
    special_attack
    special_defense
    speed
    base_experience
    evolvesInto {
      id
      name
      type
      height
      weight
      total
      hp
      attack
      defense
      special_attack
      special_defense
      speed
    }
    evolvedFrom {
      id
      name
      type
      height
      weight
      total
      hp
      attack
      defense
      special_attack
      special_defense
      speed
    }
  }
}

About

a graphql pokemon server built with node


Languages

Language:JavaScript 100.0%