-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscheme.py
More file actions
43 lines (30 loc) · 747 Bytes
/
Copy pathscheme.py
File metadata and controls
43 lines (30 loc) · 747 Bytes
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
from graphene import ObjectType, String, Field, Int, List, Boolean
class Evolutions(ObjectType):
id = String()
number = String()
name = String()
maxCP = Int()
maxHP = Int()
image = String()
types = List(String)
class Special(ObjectType):
name = String()
damage = Int()
class Fast(ObjectType):
name = String()
damage = Int()
class Attacks(ObjectType):
fast = List(Fast)
special = List(Special)
class Pokemon(ObjectType):
id = String()
number = String()
name = String()
maxCP = Int()
maxHP = Int()
image = String()
types = List(String)
attacks = Field(Attacks)
evolutions = List(Evolutions)
class RootType(ObjectType):
pokemons = Field(Pokemon)