-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.gql
51 lines (44 loc) · 885 Bytes
/
schema.gql
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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type Bet {
betAmount: Float!
chance: Float!
id: Float!
payout: Float!
userId: Float!
win: Boolean!
}
input BetInput {
betAmount: Float!
chance: Float!
payout: Float!
userId: Float!
}
type Mutation {
createBet(input: BetInput!): Bet!
createUser(input: UserInput!): User!
updateUserBalance(input: UserUpdate!): User!
}
type Query {
getBestBetUser(limit: Float!): [Bet!]!
getBet(id: Float!): Bet!
getBets: [Bet!]!
getUser(id: Float!): User!
getUsers: [User!]!
}
type User {
balance: Float!
id: Float!
name: String!
}
input UserInput {
balance: Float!
name: String!
}
input UserUpdate {
balance: Float!
id: Float!
name: String!
}