-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
108 lines (87 loc) · 1.65 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
schema {
query: Query
}
type Team {
id: ID!
region: String!
name: String!
player_one: String!
player_two: String!
player_three: String!
player_sub: String!
coach: String!
}
type Region {
name: String!
}
type Player {
id: ID!
pseudo: String!
name: String!
nationality: String!
born: String!
status: String!
team: String!
otherpseudo: String!
winningmonney: String!
}
type Transfert{
id: ID!
date: String!
players: String!
oldteam: String!
newteam: String!
}
type Matche{
id: ID!
countdown: String!
team_un: String!
team_deux: String!
score: String!
}
type TeamResult {
success: Boolean!
errors: [String]
team: Team
}
type TeamsResult {
success: Boolean!
errors: [String]
teams: [Team]
}
type RegionsResult {
success: Boolean!
errors: [String]
region: [Region]
}
type PlayerResult {
success: Boolean!
errors: [String]
player: Player
}
type PlayersResult {
success: Boolean!
errors: [String]
player: [Player]
}
type TransfersResult {
success: Boolean!
errors: [String]
transfert: [Transfert]
}
type MatchesResult {
success: Boolean!
errors: [String]
matche: [Matche]
}
type Query {
listAllTeams: TeamsResult!
getTeam_ByName(name: String!): TeamResult!
getTeam_ByRegion(region: String!): TeamsResult!
listAllRegions: RegionsResult!
listAllPlayers: PlayersResult!
getPlayer_ByName(name: String!): PlayerResult!
getPlayer_ByPseudo(pseudo: String!): PlayerResult!
listAlltransferts: TransfersResult!
listAllMatches: MatchesResult!
}