Add some extra fields

This commit is contained in:
Kristian Freeman
2019-05-02 13:25:50 -05:00
parent f41d767b64
commit e0328b7302

View File

@@ -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 {