diff --git a/src/handlers/apollo.js b/src/handlers/apollo.js index fdb5977..3bf6c81 100644 --- a/src/handlers/apollo.js +++ b/src/handlers/apollo.js @@ -4,9 +4,23 @@ const { PokemonAPI } = require('../pokeapi') const { KVCache } = require('../kv-cache') const typeDefs = gql` + type PokemonSprite { + front_default: String! + front_shiny: String! + front_female: String! + front_shiny_female: String! + back_default: String! + back_shiny: String! + back_female: String! + back_shiny_female: String! + } + type Pokemon { id: ID! name: String! + height: Int! + weight: Int! + sprites: [PokemonSprite] } type Query {