-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
60 lines (51 loc) · 1.11 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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
input AddGameToLibraryArgs {
boxArtImageUrl: String
genre: String!
name: String!
numberOfPlayers: Float!
platform: String!
publisher: String!
releaseDate: Date!
userId: String!
}
"""Date custom scalar type"""
scalar Date
type Game {
boxArtImageUrl: String
createdAt: Date!
genre: String!
id: ID!
name: String!
numberOfPlayers: Float!
platform: String!
publisher: String!
releaseDate: Date!
updatedAt: Date!
}
type GameList {
edges: [GameNode!]!
pageInfo: PageInfo!
totalCount: Float!
}
type GameNode {
node: Game!
}
type Mutation {
addGameToLibrary(data: AddGameToLibraryArgs!): Game!
prepareUploadGameBoxArt(fileName: String!): PrepareUpload!
}
type PageInfo {
hasNextPage: Boolean!
}
type PrepareUpload {
id: ID!
resultPublicUrl: String!
uploadUrl: String!
}
type Query {
game(id: ID!): Game!
gameList(limit: Int = 10, name: String, offset: Int = 0, platform: String, userId: ID): GameList!
}