-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
80 lines (73 loc) · 2.03 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
}
"Represents a Pokémon's attack types"
type Attack {
"The damage of this Pokémon attack"
damage: Int
"The name of this Pokémon attack"
name: String
"The type of this Pokémon attack"
type: String
}
"Represents a Pokémon"
type Pokemon {
"The attacks of this Pokémon"
attacks: PokemonAttack
"The classification of this Pokémon"
classification: String
"The evolution requirements of this Pokémon"
evolutionRequirements: PokemonEvolutionRequirement
"The evolutions of this Pokémon"
evolutions: [Pokemon]
fleeRate: Float
"The minimum and maximum weight of this Pokémon"
height: PokemonDimension
"The ID of an object"
id: ID!
image: String
"The maximum CP of this Pokémon"
maxCP: Int
"The maximum HP of this Pokémon"
maxHP: Int
"The name of this Pokémon"
name: String
"The identifier of this Pokémon"
number: String
"The type(s) of Pokémons that this Pokémon is resistant to"
resistant: [String]
"The type(s) of this Pokémon"
types: [String]
"The type(s) of Pokémons that this Pokémon weak to"
weaknesses: [String]
"The minimum and maximum weight of this Pokémon"
weight: PokemonDimension
}
"Represents a Pokémon's attack types"
type PokemonAttack {
"The fast attacks of this Pokémon"
fast: [Attack]
"The special attacks of this Pokémon"
special: [Attack]
}
"Represents a Pokémon's dimensions"
type PokemonDimension {
"The maximum value of this dimension"
maximum: String
"The minimum value of this dimension"
minimum: String
}
"Represents a Pokémon's requirement to evolve"
type PokemonEvolutionRequirement {
"The amount of candy to evolve"
amount: Int
"The name of the candy to evolve"
name: String
}
"Query any Pokémon by number or name"
type Query {
pokemon(id: String, name: String): Pokemon
pokemons(first: Int!): [Pokemon]
query: Query
}