O Mutation

Mutations for Pokemon operations

Used in Examples

Fields

O Pokemon
!

Catch a wild Pokemon (Relay-style input)

input
pokemonId
S ID
!

The ID of the Pokemon to catch

trainerId
S ID
!

The ID of the trainer catching the Pokemon

O Pokemon
!

Level up a Pokemon

id
S ID
!

The ID of the Pokemon to level up

O Pokemon
!

Teach a move to a Pokemon (Relay-style input)

input
pokemonId
S ID
!

The ID of the Pokemon learning the move

moveId
S ID
!

The ID of the move to teach

O Pokemon
!

Trade Pokemon between trainers (Relay-style input)

input
pokemonId
S ID
!

The ID of the Pokemon being traded

fromTrainerId
S ID
!

The ID of the trainer giving away the Pokemon

toTrainerId
S ID
!

The ID of the trainer receiving the Pokemon

O Trainer
!

Create a new trainer

profile
I TrainerProfileInput
!

Trainer profile information

startingPokemonId
S ID

Optional starting Pokemon ID