forked from hasura/graphql-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
HasuraMetadataV2.yaml
1463 lines (1436 loc) · 42.1 KB
/
HasuraMetadataV2.yaml
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
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
$schema: 'http://json-schema.org/draft-07/schema#'
definitions:
PGColumn:
type: string
ComputedFieldName:
type: string
RoleName:
type: string
TriggerName:
type: string
RemoteRelationshipName:
type: string
RemoteSchemaName:
type: string
CollectionName:
type: string
GraphQLName:
type: string
GraphQLType:
type: string
RelationshipName:
type: string
ActionName:
type: string
WebhookURL:
description: >-
A String value which supports templating environment variables enclosed in
{{ and }}.
Template example: https://{{ACTION_API_DOMAIN}}/create-user
type: string
TableName:
anyOf:
- $ref: '#/definitions/QualifiedTable'
- type: string
QualifiedTable:
title: QualifiedTable
type: object
properties:
name:
type: string
title: name
schema:
type: string
title: schema
required:
- name
- schema
TableConfig:
description: >-
Configuration for the table/view
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/table-view.html#table-config
title: TableConfig
type: object
properties:
custom_name:
description: Customise the table name
type: string
title: custom_name
custom_root_fields:
description: Customise the root fields
$ref: '#/definitions/CustomRootFields'
title: custom_root_fields
custom_column_names:
description: Customise the column names
$ref: '#/definitions/CustomColumnNames'
title: custom_column_names
TableEntry:
description: 'Representation of a table in metadata, ''tables.yaml'' and ''metadata.json'''
title: TableEntry
type: object
properties:
table:
$ref: '#/definitions/QualifiedTable'
title: table
is_enum:
type: boolean
title: is_enum
configuration:
description: >-
Configuration for the table/view
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/table-view.html#table-config
$ref: '#/definitions/TableConfig'
title: configuration
event_triggers:
type: array
items:
$ref: '#/definitions/EventTrigger'
title: event_triggers
computed_fields:
type: array
items:
$ref: '#/definitions/ComputedField'
title: computed_fields
object_relationships:
type: array
items:
$ref: '#/definitions/ObjectRelationship'
title: object_relationships
array_relationships:
type: array
items:
$ref: '#/definitions/ArrayRelationship'
title: array_relationships
remote_relationships:
type: array
items:
$ref: '#/definitions/RemoteRelationship'
title: remote_relationships
insert_permissions:
type: array
items:
$ref: '#/definitions/InsertPermissionEntry'
title: insert_permissions
select_permissions:
type: array
items:
$ref: '#/definitions/SelectPermissionEntry'
title: select_permissions
update_permissions:
type: array
items:
$ref: '#/definitions/UpdatePermissionEntry'
title: update_permissions
delete_permissions:
type: array
items:
$ref: '#/definitions/DeletePermissionEntry'
title: delete_permissions
required:
- table
CustomRootFields:
description: >-
Customise the root fields
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/table-view.html#custom-root-fields
title: CustomRootFields
type: object
properties:
select:
description: Customise the `<table-name>` root field
type: string
title: select
select_by_pk:
description: Customise the `<table-name>_by_pk` root field
type: string
title: select_by_pk
select_aggregate:
description: Customise the `<table-name>_aggregate` root field
type: string
title: select_aggregate
insert:
description: Customise the `insert_<table-name>` root field
type: string
title: insert
insert_one:
description: Customise the `insert_<table-name>_one` root field
type: string
title: insert_one
update:
description: Customise the `update_<table-name>` root field
type: string
title: update
update_by_pk:
description: Customise the `update_<table-name>_by_pk` root field
type: string
title: update_by_pk
delete:
description: Customise the `delete_<table-name>` root field
type: string
title: delete
delete_by_pk:
description: Customise the `delete_<table-name>_by_pk` root field
type: string
title: delete_by_pk
CustomColumnNames:
description: A JSON Object of Postgres column name to GraphQL name mapping
title: CustomColumnNames
type: object
additionalProperties:
type: string
FunctionName:
anyOf:
- $ref: '#/definitions/QualifiedFunction'
- type: string
QualifiedFunction:
title: QualifiedFunction
type: object
properties:
name:
type: string
title: name
schema:
type: string
title: schema
required:
- name
- schema
CustomFunction:
description: >-
A custom SQL function to add to the GraphQL schema with configuration.
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/custom-functions.html#args-syntax
title: CustomFunction
type: object
properties:
function:
description: Name of the SQL function
anyOf:
- $ref: '#/definitions/QualifiedFunction'
- type: string
title: function
configuration:
description: Configuration for the SQL function
$ref: '#/definitions/FunctionConfiguration'
title: configuration
required:
- function
FunctionConfiguration:
description: >-
Configuration for a CustomFunction
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/custom-functions.html#function-configuration
title: FunctionConfiguration
type: object
properties:
session_argument:
description: >-
Function argument which accepts session info JSON
Currently, only functions which satisfy the following constraints can
be exposed over the GraphQL API (terminology from Postgres docs):
- Function behaviour: ONLY `STABLE` or `IMMUTABLE`
- Return type: MUST be `SETOF <table-name>`
- Argument modes: ONLY `IN`
type: string
title: session_argument
ObjectRelationship:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/relationship.html#args-syntax
title: ObjectRelationship
type: object
properties:
name:
description: Name of the new relationship
type: string
title: name
using:
$ref: '#/definitions/ObjRelUsing'
description: Use one of the available ways to define an object relationship
title: using
comment:
description: Comment
type: string
title: comment
required:
- name
- using
ObjRelUsing:
description: >-
Use one of the available ways to define an object relationship
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/relationship.html#objrelusing
title: ObjRelUsing
type: object
properties:
foreign_key_constraint_on:
description: The column with foreign key constraint
type: string
title: foreign_key_constraint_on
manual_configuration:
description: Manual mapping of table and columns
$ref: '#/definitions/ObjRelUsingManualMapping'
title: manual_configuration
ObjRelUsingManualMapping:
description: >-
Manual mapping of table and columns
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/relationship.html#objrelusingmanualmapping
title: ObjRelUsingManualMapping
type: object
properties:
remote_table:
description: The table to which the relationship has to be established
anyOf:
- $ref: '#/definitions/QualifiedTable'
- type: string
title: remote_table
column_mapping:
description: Mapping of columns from current table to remote table
type: object
additionalProperties:
type: string
title: column_mapping
required:
- column_mapping
- remote_table
ArrayRelationship:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/relationship.html#create-array-relationship-syntax
title: ArrayRelationship
type: object
properties:
name:
description: Name of the new relationship
type: string
title: name
using:
$ref: '#/definitions/ArrRelUsing'
description: Use one of the available ways to define an array relationship
title: using
comment:
description: Comment
type: string
title: comment
required:
- name
- using
ArrRelUsing:
description: >-
Use one of the available ways to define an object relationship
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/relationship.html#arrrelusing
title: ArrRelUsing
type: object
properties:
foreign_key_constraint_on:
description: The column with foreign key constraint
$ref: '#/definitions/ArrRelUsingFKeyOn'
title: foreign_key_constraint_on
manual_configuration:
description: Manual mapping of table and columns
$ref: '#/definitions/ArrRelUsingManualMapping'
title: manual_configuration
ArrRelUsingFKeyOn:
description: >-
The column with foreign key constraint
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/relationship.html#arrrelusingfkeyon
title: ArrRelUsingFKeyOn
type: object
properties:
column:
type: string
title: column
table:
anyOf:
- $ref: '#/definitions/QualifiedTable'
- type: string
title: table
required:
- column
- table
ArrRelUsingManualMapping:
description: >-
Manual mapping of table and columns
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/relationship.html#arrrelusingmanualmapping
title: ArrRelUsingManualMapping
type: object
properties:
remote_table:
description: The table to which the relationship has to be established
anyOf:
- $ref: '#/definitions/QualifiedTable'
- type: string
title: remote_table
column_mapping:
description: Mapping of columns from current table to remote table
type: object
additionalProperties:
type: string
title: column_mapping
required:
- column_mapping
- remote_table
ColumnPresetsExpression:
description: >-
Preset values for columns that can be sourced from session variables or
static values.
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/syntax-defs.html#columnpresetexp
title: ColumnPresetsExpression
type: object
additionalProperties:
type: string
InsertPermissionEntry:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#args-syntax
title: InsertPermissionEntry
type: object
properties:
role:
description: Role
type: string
title: role
permission:
$ref: '#/definitions/InsertPermission'
description: The permission definition
title: permission
comment:
description: Comment
type: string
title: comment
required:
- permission
- role
InsertPermission:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#insertpermission
title: InsertPermission
type: object
properties:
check:
description: This expression has to hold true for every new row that is inserted
type: object
additionalProperties:
anyOf:
- type: object
properties: {}
additionalProperties: true
- type:
- string
- number
title: check
set:
description: >-
Preset values for columns that can be sourced from session variables
or static values
$ref: '#/definitions/ColumnPresetsExpression'
title: set
columns:
description: Can insert into only these columns (or all when '*' is specified)
anyOf:
- type: array
items:
type: string
- enum:
- '*'
type: string
title: columns
backend_only:
description: >-
When set to true the mutation is accessible only if
x-hasura-use-backend-only-permissions session variable exists
and is set to true and request is made with x-hasura-admin-secret set
if any auth is configured
type: boolean
title: backend_only
required:
- columns
SelectPermissionEntry:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#create-select-permission-syntax
title: SelectPermissionEntry
type: object
properties:
role:
description: Role
type: string
title: role
permission:
$ref: '#/definitions/SelectPermission'
description: The permission definition
title: permission
comment:
description: Comment
type: string
title: comment
required:
- permission
- role
SelectPermission:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#selectpermission
title: SelectPermission
type: object
properties:
columns:
description: Only these columns are selectable (or all when '*' is specified)
anyOf:
- type: array
items:
type: string
- enum:
- '*'
type: string
title: columns
computed_fields:
description: Only these computed fields are selectable
type: array
items:
type: string
title: computed_fields
limit:
description: The maximum number of rows that can be returned
type: integer
title: limit
allow_aggregations:
description: Toggle allowing aggregate queries
type: boolean
title: allow_aggregations
filter:
description: Only the rows where this precondition holds true are selectable
type: object
additionalProperties:
anyOf:
- type: object
properties: {}
additionalProperties: true
- type:
- string
- number
title: filter
required:
- columns
UpdatePermissionEntry:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#create-update-permission-syntax
title: UpdatePermissionEntry
type: object
properties:
role:
description: Role
type: string
title: role
permission:
$ref: '#/definitions/UpdatePermission'
description: The permission definition
title: permission
comment:
description: Comment
type: string
title: comment
required:
- permission
- role
UpdatePermission:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#updatepermission
title: UpdatePermission
type: object
properties:
check:
description: Postcondition which must be satisfied by rows which have been updated
type: object
additionalProperties:
anyOf:
- type: object
properties: {}
additionalProperties: true
- type:
- string
- number
title: check
set:
description: >-
Preset values for columns that can be sourced from session variables
or static values
$ref: '#/definitions/ColumnPresetsExpression'
title: set
columns:
description: Only these columns are selectable (or all when '*' is specified)
anyOf:
- type: array
items:
type: string
- enum:
- '*'
type: string
title: columns
filter:
description: Only the rows where this precondition holds true are updatable
type: object
additionalProperties:
anyOf:
- type: object
properties: {}
additionalProperties: true
- type:
- string
- number
title: filter
required:
- columns
DeletePermissionEntry:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#create-delete-permission-syntax
title: DeletePermissionEntry
type: object
properties:
role:
description: Role
type: string
title: role
permission:
$ref: '#/definitions/DeletePermission'
description: The permission definition
title: permission
comment:
description: Comment
type: string
title: comment
required:
- permission
- role
DeletePermission:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/permission.html#deletepermission
title: DeletePermission
type: object
properties:
filter:
description: Only the rows where this precondition holds true are updatable
type: object
additionalProperties:
anyOf:
- type: object
properties: {}
additionalProperties: true
- type:
- string
- number
title: filter
ComputedField:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/computed-field.html#args-syntax
title: ComputedField
type: object
properties:
name:
description: Name of the new computed field
type: string
title: name
definition:
$ref: '#/definitions/ComputedFieldDefinition'
description: The computed field definition
title: definition
comment:
description: Comment
type: string
title: comment
required:
- definition
- name
ComputedFieldDefinition:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/computed-field.html#computedfielddefinition
title: ComputedFieldDefinition
type: object
properties:
function:
description: The SQL function
anyOf:
- $ref: '#/definitions/QualifiedFunction'
- type: string
title: function
table_argument:
description: >-
Name of the argument which accepts a table row type. If omitted, the
first argument is considered a table argument
type: string
title: table_argument
session_argument:
description: >-
Name of the argument which accepts the Hasura session object as a
JSON/JSONB value. If omitted, the Hasura session object is not passed
to the function
type: string
title: session_argument
required:
- function
EventTrigger:
description: >-
NOTE: The metadata type doesn't QUITE match the 'create' arguments here
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#create-event-trigger
title: EventTrigger
type: object
properties:
name:
description: Name of the event trigger
type: string
title: name
definition:
$ref: '#/definitions/EventTriggerDefinition'
description: The SQL function
title: definition
retry_conf:
$ref: '#/definitions/RetryConf'
description: The SQL function
title: retry_conf
webhook:
description: The SQL function
type: string
title: webhook
webhook_from_env:
type: string
title: webhook_from_env
headers:
description: The SQL function
type: array
items:
anyOf:
- $ref: '#/definitions/HeaderFromValue'
- $ref: '#/definitions/HeaderFromEnv'
title: headers
required:
- definition
- name
- retry_conf
EventTriggerDefinition:
title: EventTriggerDefinition
type: object
properties:
enable_manual:
type: boolean
title: enable_manual
insert:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#operationspec
$ref: '#/definitions/OperationSpec'
title: insert
delete:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#operationspec
$ref: '#/definitions/OperationSpec'
title: delete
update:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#operationspec
$ref: '#/definitions/OperationSpec'
title: update
required:
- enable_manual
EventTriggerColumns:
anyOf:
- type: array
items:
type: string
- enum:
- '*'
type: string
OperationSpec:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#operationspec
title: OperationSpec
type: object
properties:
columns:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#eventtriggercolumns
anyOf:
- type: array
items:
type: string
- enum:
- '*'
type: string
title: columns
payload:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#eventtriggercolumns
anyOf:
- type: array
items:
type: string
- enum:
- '*'
type: string
title: payload
required:
- columns
HeaderFromValue:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/syntax-defs.html#headerfromvalue
title: HeaderFromValue
type: object
properties:
name:
description: Name of the header
type: string
title: name
value:
description: Value of the header
type: string
title: value
required:
- name
- value
HeaderFromEnv:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/syntax-defs.html#headerfromenv
title: HeaderFromEnv
type: object
properties:
name:
description: Name of the header
type: string
title: name
value_from_env:
description: Name of the environment variable which holds the value of the header
type: string
title: value_from_env
required:
- name
- value_from_env
RetryConf:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/event-triggers.html#retryconf
title: RetryConf
type: object
properties:
num_retries:
description: |-
Number of times to retry delivery.
Default: 0
type: integer
title: num_retries
interval_sec:
description: |-
Number of seconds to wait between each retry.
Default: 10
type: integer
title: interval_sec
timeout_sec:
description: |-
Number of seconds to wait for response before timing out.
Default: 60
type: integer
title: timeout_sec
CronTrigger:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/scheduled-triggers.html#create-cron-trigger
title: CronTrigger
type: object
properties:
name:
description: Name of the cron trigger
type: string
title: name
webhook:
description: URL of the webhook
type: string
title: webhook
schedule:
description: Cron expression at which the trigger should be invoked.
type: string
title: schedule
payload:
description: Any JSON payload which will be sent when the webhook is invoked.
type: object
properties: {}
additionalProperties: true
title: payload
headers:
description: List of headers to be sent with the webhook
type: array
items:
anyOf:
- $ref: '#/definitions/HeaderFromValue'
- $ref: '#/definitions/HeaderFromEnv'
title: headers
retry_conf:
description: Retry configuration if scheduled invocation delivery fails
$ref: '#/definitions/RetryConfST'
title: retry_conf
include_in_metadata:
description: >-
Flag to indicate whether a trigger should be included in the metadata.
When a cron trigger is included in the metadata, the user will be able
to export it when the metadata of the graphql-engine is exported.
type: boolean
title: include_in_metadata
comment:
description: Custom comment.
type: string
title: comment
required:
- headers
- include_in_metadata
- name
- schedule
- webhook
RetryConfST:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/scheduled-triggers.html#retryconfst
title: RetryConfST
type: object
properties:
num_retries:
description: |-
Number of times to retry delivery.
Default: 0
type: integer
title: num_retries
retry_interval_seconds:
description: |-
Number of seconds to wait between each retry.
Default: 10
type: integer
title: retry_interval_seconds
timeout_seconds:
description: |-
Number of seconds to wait for response before timing out.
Default: 60
type: integer
title: timeout_seconds
tolerance_seconds:
description: >-
Number of seconds between scheduled time and actual delivery time that
is acceptable. If the time difference is more than this, then the
event is dropped.
Default: 21600 (6 hours)
type: integer
title: tolerance_seconds
RemoteSchema:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/remote-schemas.html#add-remote-schema
title: RemoteSchema
type: object
properties:
name:
description: Name of the remote schema
type: string
title: name
definition:
$ref: '#/definitions/RemoteSchemaDef'
description: Name of the remote schema
title: definition
comment:
description: Comment
type: string
title: comment
required:
- definition
- name
RemoteSchemaDef:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/syntax-defs.html#remoteschemadef
title: RemoteSchemaDef
type: object
properties:
url:
type: string
title: url
url_from_env:
type: string
title: url_from_env
headers:
type: array
items:
anyOf:
- $ref: '#/definitions/HeaderFromValue'
- $ref: '#/definitions/HeaderFromEnv'
title: headers
forward_client_headers:
type: boolean
title: forward_client_headers
timeout_seconds:
type: number
title: timeout_seconds
RemoteRelationship:
description: >-
https://hasura.io/docs/latest/graphql/core/api-reference/schema-metadata-api/remote-relationships.html#args-syntax
title: RemoteRelationship
type: object
properties:
name:
description: Name of the remote relationship
type: string
title: name
definition:
$ref: '#/definitions/RemoteRelationshipDef'
description: Definition object
title: definition
required:
- definition
- name
RemoteRelationshipDef:
title: RemoteRelationshipDef
type: object
properties:
hasura_fields:
description: >-
Column(s) in the table that is used for joining with remote schema
field.
All join keys in remote_field must appear here.
type: array
items:
type: string
title: hasura_fields