-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdatapoint-schema.graphql
111 lines (97 loc) · 2.03 KB
/
datapoint-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
109
110
111
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
type DataPoint {
createdAt: AWSDateTime!
name: ID!
value: Int
}
type DataPointConnection {
items: [DataPoint]
nextToken: String
}
type Mutation {
createDataPoint(input: CreateDataPointInput!): DataPoint
deleteDataPoint(input: DeleteDataPointInput!): DataPoint
updateDataPoint(input: UpdateDataPointInput!): DataPoint
}
type Query {
getDataPoint(createdAt: AWSDateTime!, name: ID!): DataPoint
listDataPoints(filter: TableDataPointFilterInput, limit: Int, nextToken: String): DataPointConnection
}
type Subscription {
onCreateDataPoint(createdAt: AWSDateTime, name: ID, value: Int): DataPoint @aws_subscribe(mutations : ["createDataPoint"])
onDeleteDataPoint(createdAt: AWSDateTime, name: ID, value: Int): DataPoint @aws_subscribe(mutations : ["deleteDataPoint"])
onUpdateDataPoint(createdAt: AWSDateTime, name: ID, value: Int): DataPoint @aws_subscribe(mutations : ["updateDataPoint"])
}
input CreateDataPointInput {
createdAt: AWSDateTime!
name: ID!
value: Int
}
input DeleteDataPointInput {
createdAt: AWSDateTime!
name: ID!
}
input TableBooleanFilterInput {
eq: Boolean
ne: Boolean
}
input TableDataPointFilterInput {
createdAt: TableStringFilterInput
name: TableIDFilterInput
value: TableIntFilterInput
}
input TableFloatFilterInput {
between: [Float]
contains: Float
eq: Float
ge: Float
gt: Float
le: Float
lt: Float
ne: Float
notContains: Float
}
input TableIDFilterInput {
beginsWith: ID
between: [ID]
contains: ID
eq: ID
ge: ID
gt: ID
le: ID
lt: ID
ne: ID
notContains: ID
}
input TableIntFilterInput {
between: [Int]
contains: Int
eq: Int
ge: Int
gt: Int
le: Int
lt: Int
ne: Int
notContains: Int
}
input TableStringFilterInput {
beginsWith: String
between: [String]
contains: String
eq: String
ge: String
gt: String
le: String
lt: String
ne: String
notContains: String
}
input UpdateDataPointInput {
createdAt: AWSDateTime!
name: ID!
value: Int
}