Pokemon Basics

Learn how to query individual Pokemon and their core attributes. Hover over any field to see its type information!

Fetching a Single Pokemon

query GetPikachu {
  pokemon(id: "025") {
    id
    name
    types
    level
    experience
    isShiny
  }
}
Loading tree-sitter...

Pokemon with Abilities

Each Pokemon has unique abilities that affect battles:

query PokemonAbilities {
  pokemon(id: "006") {  # Charizard
    name
    abilities {
      name
      description
      isHidden
      battleEffect
    }
  }
}
Loading tree-sitter...

Base Stats

Explore the six fundamental stats that determine a Pokemon's battle prowess:

query PokemonStats {
  pokemon(id: "150") {  # Mewtwo
    name
    stats {
      hp
      attack
      defense
      specialAttack
      specialDefense
      speed
      total
    }
  }
}
Loading tree-sitter...

Pokemon IVs and Nature

Explore genetic potential and personality traits:

query GeneticPotential {
  pokemon(id: "009") {  # Blastoise
    name
    types
    nature
    ivs {
      hp
      attack
      defense
      specialAttack
      specialDefense
      speed
      isPerfect
    }
  }
}
Loading tree-sitter...

Pokemon Training Data

Explore training-related attributes:

query DetailedPokemonInfo {
  pokemon(id: "001") {
    name
    types
    level
    friendship
    nature
    evs {
      hp
      attack
      defense
      speed
      specialAttack
      specialDefense
    }
  }
}
Loading tree-sitter...

Listing Multiple Pokemon

Get a list of Pokemon with pagination:

query ListPokemons {
  allPokemon(limit: 5, offset: 0) {
    edges {
      node {
        id
        name
        types
        level
      }
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
    }
  }
}
Loading tree-sitter...