-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
463 lines (366 loc) · 11.1 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
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
schema {
query: query_root
mutation: mutation_root
subscription: subscription_root
}
scalar jsonb
# Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'.
input jsonb_comparison_exp {
# is the column contained in the given json value
_contained_in: jsonb
# does the column contain the given json value at the top level
_contains: jsonb
_eq: jsonb
_gt: jsonb
_gte: jsonb
# does the string exist as a top-level key in the column
_has_key: String
# do all of these strings exist as top-level keys in the column
_has_keys_all: [String!]
# do any of these strings exist as top-level keys in the column
_has_keys_any: [String!]
_in: [jsonb!]
_is_null: Boolean
_lt: jsonb
_lte: jsonb
_neq: jsonb
_nin: [jsonb!]
}
# mutation root
type mutation_root {
# delete data from the table: "spotipiano"
delete_spotipiano(
# filter the rows which have to be deleted
where: spotipiano_bool_exp!
): spotipiano_mutation_response
# delete single row from the table: "spotipiano"
delete_spotipiano_by_pk(id: uuid!): spotipiano
# insert data into the table: "spotipiano"
insert_spotipiano(
# the rows to be inserted
objects: [spotipiano_insert_input!]!
# on conflict condition
on_conflict: spotipiano_on_conflict
): spotipiano_mutation_response
# insert a single row into the table: "spotipiano"
insert_spotipiano_one(
# the row to be inserted
object: spotipiano_insert_input!
# on conflict condition
on_conflict: spotipiano_on_conflict
): spotipiano
# update data of the table: "spotipiano"
update_spotipiano(
# append existing jsonb value of filtered columns with new jsonb value
_append: spotipiano_append_input
# delete the field or element with specified path (for JSON arrays, negative integers count from the end)
_delete_at_path: spotipiano_delete_at_path_input
# delete the array element with specified index (negative integers count from
# the end). throws an error if top level container is not an array
_delete_elem: spotipiano_delete_elem_input
# delete key/value pair or string element. key/value pairs are matched based on their key value
_delete_key: spotipiano_delete_key_input
# prepend existing jsonb value of filtered columns with new jsonb value
_prepend: spotipiano_prepend_input
# sets the columns of the filtered rows to the given values
_set: spotipiano_set_input
# filter the rows which have to be updated
where: spotipiano_bool_exp!
): spotipiano_mutation_response
# update single row of the table: "spotipiano"
update_spotipiano_by_pk(
# append existing jsonb value of filtered columns with new jsonb value
_append: spotipiano_append_input
# delete the field or element with specified path (for JSON arrays, negative integers count from the end)
_delete_at_path: spotipiano_delete_at_path_input
# delete the array element with specified index (negative integers count from
# the end). throws an error if top level container is not an array
_delete_elem: spotipiano_delete_elem_input
# delete key/value pair or string element. key/value pairs are matched based on their key value
_delete_key: spotipiano_delete_key_input
# prepend existing jsonb value of filtered columns with new jsonb value
_prepend: spotipiano_prepend_input
# sets the columns of the filtered rows to the given values
_set: spotipiano_set_input
pk_columns: spotipiano_pk_columns_input!
): spotipiano
}
# column ordering options
enum order_by {
# in ascending order, nulls last
asc
# in ascending order, nulls first
asc_nulls_first
# in ascending order, nulls last
asc_nulls_last
# in descending order, nulls first
desc
# in descending order, nulls first
desc_nulls_first
# in descending order, nulls last
desc_nulls_last
}
type query_root {
# fetch data from the table: "spotipiano"
spotipiano(
# distinct select on columns
distinct_on: [spotipiano_select_column!]
# limit the number of rows returned
limit: Int
# skip the first n rows. Use only with order_by
offset: Int
# sort the rows by one or more columns
order_by: [spotipiano_order_by!]
# filter the rows returned
where: spotipiano_bool_exp
): [spotipiano!]!
# fetch aggregated fields from the table: "spotipiano"
spotipiano_aggregate(
# distinct select on columns
distinct_on: [spotipiano_select_column!]
# limit the number of rows returned
limit: Int
# skip the first n rows. Use only with order_by
offset: Int
# sort the rows by one or more columns
order_by: [spotipiano_order_by!]
# filter the rows returned
where: spotipiano_bool_exp
): spotipiano_aggregate!
# fetch data from the table: "spotipiano" using primary key columns
spotipiano_by_pk(id: uuid!): spotipiano
}
# columns and relationships of "spotipiano"
type spotipiano {
created_at: timestamptz!
id: uuid!
piano(
# JSON select path
path: String
): jsonb!
song(
# JSON select path
path: String
): jsonb
title: String!
}
# aggregated selection of "spotipiano"
type spotipiano_aggregate {
aggregate: spotipiano_aggregate_fields
nodes: [spotipiano!]!
}
# aggregate fields of "spotipiano"
type spotipiano_aggregate_fields {
count(columns: [spotipiano_select_column!], distinct: Boolean): Int!
max: spotipiano_max_fields
min: spotipiano_min_fields
}
# append existing jsonb value of filtered columns with new jsonb value
input spotipiano_append_input {
piano: jsonb
song: jsonb
}
# Boolean expression to filter rows from the table "spotipiano". All fields are combined with a logical 'AND'.
input spotipiano_bool_exp {
_and: [spotipiano_bool_exp!]
_not: spotipiano_bool_exp
_or: [spotipiano_bool_exp!]
created_at: timestamptz_comparison_exp
id: uuid_comparison_exp
piano: jsonb_comparison_exp
song: jsonb_comparison_exp
title: String_comparison_exp
}
# unique or primary key constraints on table "spotipiano"
enum spotipiano_constraint {
# unique or primary key constraint
spotipiano_pkey
}
# delete the field or element with specified path (for JSON arrays, negative integers count from the end)
input spotipiano_delete_at_path_input {
piano: [String!]
song: [String!]
}
# delete the array element with specified index (negative integers count from the
# end). throws an error if top level container is not an array
input spotipiano_delete_elem_input {
piano: Int
song: Int
}
# delete key/value pair or string element. key/value pairs are matched based on their key value
input spotipiano_delete_key_input {
piano: String
song: String
}
# input type for inserting data into table "spotipiano"
input spotipiano_insert_input {
created_at: timestamptz
id: uuid
piano: jsonb
song: jsonb
title: String
}
# aggregate max on columns
type spotipiano_max_fields {
created_at: timestamptz
id: uuid
title: String
}
# aggregate min on columns
type spotipiano_min_fields {
created_at: timestamptz
id: uuid
title: String
}
# response of any mutation on the table "spotipiano"
type spotipiano_mutation_response {
# number of rows affected by the mutation
affected_rows: Int!
# data from the rows affected by the mutation
returning: [spotipiano!]!
}
# on conflict condition type for table "spotipiano"
input spotipiano_on_conflict {
constraint: spotipiano_constraint!
update_columns: [spotipiano_update_column!]! = []
where: spotipiano_bool_exp
}
# Ordering options when selecting data from "spotipiano".
input spotipiano_order_by {
created_at: order_by
id: order_by
piano: order_by
song: order_by
title: order_by
}
# primary key columns input for table: spotipiano
input spotipiano_pk_columns_input {
id: uuid!
}
# prepend existing jsonb value of filtered columns with new jsonb value
input spotipiano_prepend_input {
piano: jsonb
song: jsonb
}
# select columns of table "spotipiano"
enum spotipiano_select_column {
# column name
created_at
# column name
id
# column name
piano
# column name
song
# column name
title
}
# input type for updating data in table "spotipiano"
input spotipiano_set_input {
created_at: timestamptz
id: uuid
piano: jsonb
song: jsonb
title: String
}
# update columns of table "spotipiano"
enum spotipiano_update_column {
# column name
created_at
# column name
id
# column name
piano
# column name
song
# column name
title
}
# Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'.
input String_comparison_exp {
_eq: String
_gt: String
_gte: String
# does the column match the given case-insensitive pattern
_ilike: String
_in: [String!]
# does the column match the given POSIX regular expression, case insensitive
_iregex: String
_is_null: Boolean
# does the column match the given pattern
_like: String
_lt: String
_lte: String
_neq: String
# does the column NOT match the given case-insensitive pattern
_nilike: String
_nin: [String!]
# does the column NOT match the given POSIX regular expression, case insensitive
_niregex: String
# does the column NOT match the given pattern
_nlike: String
# does the column NOT match the given POSIX regular expression, case sensitive
_nregex: String
# does the column NOT match the given SQL regular expression
_nsimilar: String
# does the column match the given POSIX regular expression, case sensitive
_regex: String
# does the column match the given SQL regular expression
_similar: String
}
type subscription_root {
# fetch data from the table: "spotipiano"
spotipiano(
# distinct select on columns
distinct_on: [spotipiano_select_column!]
# limit the number of rows returned
limit: Int
# skip the first n rows. Use only with order_by
offset: Int
# sort the rows by one or more columns
order_by: [spotipiano_order_by!]
# filter the rows returned
where: spotipiano_bool_exp
): [spotipiano!]!
# fetch aggregated fields from the table: "spotipiano"
spotipiano_aggregate(
# distinct select on columns
distinct_on: [spotipiano_select_column!]
# limit the number of rows returned
limit: Int
# skip the first n rows. Use only with order_by
offset: Int
# sort the rows by one or more columns
order_by: [spotipiano_order_by!]
# filter the rows returned
where: spotipiano_bool_exp
): spotipiano_aggregate!
# fetch data from the table: "spotipiano" using primary key columns
spotipiano_by_pk(id: uuid!): spotipiano
}
scalar timestamptz
# Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'.
input timestamptz_comparison_exp {
_eq: timestamptz
_gt: timestamptz
_gte: timestamptz
_in: [timestamptz!]
_is_null: Boolean
_lt: timestamptz
_lte: timestamptz
_neq: timestamptz
_nin: [timestamptz!]
}
scalar uuid
# Boolean expression to compare columns of type "uuid". All fields are combined with logical 'AND'.
input uuid_comparison_exp {
_eq: uuid
_gt: uuid
_gte: uuid
_in: [uuid!]
_is_null: Boolean
_lt: uuid
_lte: uuid
_neq: uuid
_nin: [uuid!]
}