-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreservations.qql
239 lines (218 loc) · 4.95 KB
/
reservations.qql
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
type AggregateReservation {
count: Int!
}
type BatchPayload {
count: Long!
}
scalar Long
type Mutation {
createReservation(data: ReservationCreateInput!): Reservation!
updateReservation(
data: ReservationUpdateInput!
where: ReservationWhereUniqueInput!
): Reservation
deleteReservation(where: ReservationWhereUniqueInput!): Reservation
upsertReservation(
where: ReservationWhereUniqueInput!
create: ReservationCreateInput!
update: ReservationUpdateInput!
): Reservation!
updateManyReservations(
data: ReservationUpdateManyMutationInput!
where: ReservationWhereInput
): BatchPayload!
deleteManyReservations(where: ReservationWhereInput): BatchPayload!
}
enum MutationType {
CREATED
UPDATED
DELETED
}
interface Node {
id: ID!
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type Query {
reservations(
where: ReservationWhereInput
orderBy: ReservationOrderByInput
skip: Int
after: String
before: String
first: Int
last: Int
): [Reservation]!
reservation(where: ReservationWhereUniqueInput!): Reservation
reservationsConnection(
where: ReservationWhereInput
orderBy: ReservationOrderByInput
skip: Int
after: String
before: String
first: Int
last: Int
): ReservationConnection!
node(id: ID!): Node
}
type Reservation implements Node {
id: ID!
name: String!
hotelName: String!
arrivalDate: String!
departureDate: String!
}
type ReservationConnection {
pageInfo: PageInfo!
edges: [ReservationEdge]!
aggregate: AggregateReservation!
}
input ReservationCreateInput {
id: ID
name: String!
hotelName: String!
arrivalDate: String!
departureDate: String!
}
type ReservationEdge {
node: Reservation!
cursor: String!
}
enum ReservationOrderByInput {
id_ASC
id_DESC
name_ASC
name_DESC
hotelName_ASC
hotelName_DESC
arrivalDate_ASC
arrivalDate_DESC
departureDate_ASC
departureDate_DESC
updatedAt_ASC
updatedAt_DESC
createdAt_ASC
createdAt_DESC
}
type ReservationPreviousValues {
id: ID!
name: String!
hotelName: String!
arrivalDate: String!
departureDate: String!
}
type ReservationSubscriptionPayload {
mutation: MutationType!
node: Reservation
updatedFields: [String!]
previousValues: ReservationPreviousValues
}
input ReservationSubscriptionWhereInput {
AND: [ReservationSubscriptionWhereInput!]
OR: [ReservationSubscriptionWhereInput!]
NOT: [ReservationSubscriptionWhereInput!]
mutation_in: [MutationType!]
updatedFields_contains: String
updatedFields_contains_every: [String!]
updatedFields_contains_some: [String!]
node: ReservationWhereInput
}
input ReservationUpdateInput {
name: String
hotelName: String
arrivalDate: String
departureDate: String
}
input ReservationUpdateManyMutationInput {
name: String
hotelName: String
arrivalDate: String
departureDate: String
}
input ReservationWhereInput {
AND: [ReservationWhereInput!]
OR: [ReservationWhereInput!]
NOT: [ReservationWhereInput!]
id: ID
id_not: ID
id_in: [ID!]
id_not_in: [ID!]
id_lt: ID
id_lte: ID
id_gt: ID
id_gte: ID
id_contains: ID
id_not_contains: ID
id_starts_with: ID
id_not_starts_with: ID
id_ends_with: ID
id_not_ends_with: ID
name: String
name_not: String
name_in: [String!]
name_not_in: [String!]
name_lt: String
name_lte: String
name_gt: String
name_gte: String
name_contains: String
name_not_contains: String
name_starts_with: String
name_not_starts_with: String
name_ends_with: String
name_not_ends_with: String
hotelName: String
hotelName_not: String
hotelName_in: [String!]
hotelName_not_in: [String!]
hotelName_lt: String
hotelName_lte: String
hotelName_gt: String
hotelName_gte: String
hotelName_contains: String
hotelName_not_contains: String
hotelName_starts_with: String
hotelName_not_starts_with: String
hotelName_ends_with: String
hotelName_not_ends_with: String
arrivalDate: String
arrivalDate_not: String
arrivalDate_in: [String!]
arrivalDate_not_in: [String!]
arrivalDate_lt: String
arrivalDate_lte: String
arrivalDate_gt: String
arrivalDate_gte: String
arrivalDate_contains: String
arrivalDate_not_contains: String
arrivalDate_starts_with: String
arrivalDate_not_starts_with: String
arrivalDate_ends_with: String
arrivalDate_not_ends_with: String
departureDate: String
departureDate_not: String
departureDate_in: [String!]
departureDate_not_in: [String!]
departureDate_lt: String
departureDate_lte: String
departureDate_gt: String
departureDate_gte: String
departureDate_contains: String
departureDate_not_contains: String
departureDate_starts_with: String
departureDate_not_starts_with: String
departureDate_ends_with: String
departureDate_not_ends_with: String
}
input ReservationWhereUniqueInput {
id: ID
}
type Subscription {
reservation(
where: ReservationSubscriptionWhereInput
): ReservationSubscriptionPayload
}