-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.graphql
91 lines (80 loc) · 1.92 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
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
type Query {
QuoteRequestById(id: ID!): QuoteRequest
QuoteRequest(query: [AttributeFilter]): [QuoteRequest]!
QuoteResponseById(id: ID!): QuoteResponse
QuoteResponse(query: [AttributeFilter]): [QuoteResponse]!
cognitoInfo: CognitoInfo!
lambda: LambdaInfo!
error: Boolean
}
type Mutation {
batchPutQuotes(
request: QuoteRequestInput!,
response: QuoteResponseInput!
): BatchPut!
badBatchPutQuotes(
request: QuoteRequestInput!,
response: QuoteResponseInput!
): BatchPut!
putQuoteRequest(id: ID, input: QuoteRequestInput!): QuoteRequest!
updateQuoteRequest(id: ID!, input: QuoteRequestInput!): QuoteRequest!
deleteQuoteRequest(id: ID!): Boolean
putQuoteResponse(id: ID, input: QuoteResponseInput!): QuoteResponse!
updateQuoteResponse(id: ID!, input: QuoteResponseInput!): QuoteResponse!
deleteQuoteResponse(id: ID!): Boolean
neverNotify: String!
}
type Subscription {
subscribeToPutQuoteRequest: QuoteRequest!
@aws_subscribe(mutations: ["putQuoteRequest"])
subscribeToPutQuoteResponse: QuoteResponse!
@aws_subscribe(mutations: ["putQuoteResponse"])
neverNotify: String!
@aws_subscribe(mutations: ["neverNotify"])
}
type BatchPut {
request: QuoteRequest!
response: QuoteResponse!
}
type CognitoInfo {
sub: String!
issuer: String!
username: String!
# XXX: Can't test claims...
sourceIp: [String!]!
claims: String!
defaultAuthStrategy: String!
groups: [String]
}
type LambdaInfo {
test: String!
}
type QuoteRequest {
id: ID!
commodity: String
amount: Float
}
input QuoteRequestInput {
commodity: String
amount: Float
}
type QuoteResponse {
id: ID!
offer: String
expires: Float
}
input QuoteResponseInput {
offer: String
expires: Float
}
input AttributeFilter {
expression: String!
expressionName: String!
expressionNumberValue: Float
expressionStringValue: String
}