mirror of
https://github.com/zhigang1992/workers-graphql-server.git
synced 2026-01-12 09:43:41 +08:00
Add some extra fields
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user