-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.gql
60 lines (50 loc) · 1.08 KB
/
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
52
53
54
55
56
57
58
59
60
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type Account {
id: ID!
userEmail: String!
userName: String!
accountNumber: String!
operationDate: String!
accountTotal: Float!
accountTotalNoYieldRate: Float!
yields: Float!
totalWithdrawal: Float!
createdAt: DateTime!
updatedAt: DateTime
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type DepositPayload {
account: Account
}
type PaymentPayload {
account: Account
}
type WithdrawalPayload {
account: Account
}
type Query {
getAccountBalance(id: String!): Account!
}
type Mutation {
makeDeposit(input: DepositInput!): DepositPayload!
makePayment(input: PaymentInput!): PaymentPayload!
makeWithdrawal(input: WithdrawalInput!): WithdrawalPayload!
}
input DepositInput {
id: ID!
amount: String!
}
input PaymentInput {
id: ID!
amount: String!
target: String!
}
input WithdrawalInput {
id: ID!
amount: String!
}