-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
94 lines (83 loc) · 1.58 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
### This file was generated by Nexus Schema
### Do not make changes to this file directly
"""
Move a Pokémon can perform with the associated damage and type.
"""
type Attack {
damage: Int
name: String
type: PokemonType
}
type AttacksConnection {
fast: [Attack]
special: [Attack]
}
"""
Requirement that prevents an evolution through regular means of levelling up.
"""
type EvolutionRequirement {
amount: Int
name: String
}
type Pokemon {
attacks: AttacksConnection
classification: String
evolutionRequirements: [EvolutionRequirement]
evolutions: [Pokemon]
"""
Likelihood of an attempt to catch a Pokémon to fail.
"""
fleeRate: Float
height: PokemonDimension
id: ID!
"""
Maximum combat power a Pokémon may achieve at max level.
"""
maxCP: Int
"""
Maximum health points a Pokémon may achieve at max level.
"""
maxHP: Int
name: String!
resistant: [PokemonType]
types: [PokemonType]
weaknesses: [PokemonType]
weight: PokemonDimension @deprecated(reason: "And this is the reason why")
}
type PokemonDimension {
maximum: String
minimum: String
}
"""
Elemental property associated with either a Pokémon or one of their moves.
"""
enum PokemonType {
Bug
Dark
Dragon
Electric
Fairy
Fighting
Fire
Flying
Ghost
Grass
Ground
Ice
Normal
Poison
Psychic
Rock
Steel
Water
}
type Query {
"""
Get a single Pokémon by its ID, a three character long identifier padded with zeroes
"""
pokemon(id: ID!): Pokemon
"""
List out all Pokémon, optionally in pages
"""
pokemons(limit: Int, skip: Int): [Pokemon]
}