-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tailcallrc.schema.json
1542 lines (1542 loc) · 45.9 KB
/
.tailcallrc.schema.json
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#",
"title": "Config",
"type": "object",
"required": [
"schema"
],
"properties": {
"enums": {
"description": "A map of all the enum types in the schema",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Enum"
}
},
"links": {
"description": "A list of all links in the schema.",
"type": "array",
"items": {
"$ref": "#/definitions/Link"
}
},
"schema": {
"description": "Specifies the entry points for query and mutation in the generated GraphQL schema.",
"allOf": [
{
"$ref": "#/definitions/RootSchema"
}
]
},
"server": {
"description": "Dictates how the server behaves and helps tune tailcall for all ingress requests. Features such as request batching, SSL, HTTP2 etc. can be configured here.",
"default": {},
"allOf": [
{
"$ref": "#/definitions/Server"
}
]
},
"telemetry": {
"description": "Enable [opentelemetry](https://opentelemetry.io) support",
"allOf": [
{
"$ref": "#/definitions/Telemetry"
}
]
},
"types": {
"description": "A map of all the types in the schema.",
"default": {},
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Type"
}
},
"unions": {
"description": "A map of all the union types in the schema.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Union"
}
},
"upstream": {
"description": "Dictates how tailcall should handle upstream requests/responses. Tuning upstream can improve performance and reliability for connections.",
"default": {},
"allOf": [
{
"$ref": "#/definitions/Upstream"
}
]
}
},
"definitions": {
"AddField": {
"description": "The @addField operator simplifies data structures and queries by adding a field that inlines or flattens a nested field or node within your schema. more info [here](https://tailcall.run/docs/guides/operators/#addfield)",
"type": "object",
"required": [
"name",
"path"
],
"properties": {
"name": {
"description": "Name of the new field to be added",
"type": "string"
},
"path": {
"description": "Path of the data where the field should point to",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"Apollo": {
"type": "object",
"required": [
"apiKey",
"graphRef"
],
"properties": {
"apiKey": {
"description": "Setting `apiKey` for Apollo.",
"type": "string"
},
"graphRef": {
"description": "Setting `graphRef` for Apollo in the format <graphId>@<variant>.",
"type": "string"
},
"platform": {
"description": "Setting `platform` for Apollo.",
"type": [
"string",
"null"
]
},
"userVersion": {
"description": "Setting `userVersion` for Apollo.",
"type": [
"string",
"null"
]
},
"version": {
"description": "Setting `version` for Apollo.",
"type": [
"string",
"null"
]
}
}
},
"Arg": {
"type": "object",
"required": [
"type"
],
"properties": {
"default_value": true,
"doc": {
"type": [
"string",
"null"
]
},
"list": {
"type": "boolean"
},
"modify": {
"anyOf": [
{
"$ref": "#/definitions/Modify"
},
{
"type": "null"
}
]
},
"required": {
"type": "boolean"
},
"type": {
"type": "string"
}
}
},
"Batch": {
"type": "object",
"properties": {
"delay": {
"default": 0,
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"headers": {
"default": [],
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"maxSize": {
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0.0
}
}
},
"Cache": {
"description": "The @cache operator enables caching for the query, field or type it is applied to.",
"type": "object",
"required": [
"maxAge"
],
"properties": {
"maxAge": {
"description": "Specifies the duration, in milliseconds, of how long the value has to be stored in the cache.",
"type": "integer",
"format": "uint64",
"minimum": 1.0
}
},
"additionalProperties": false
},
"Call": {
"description": "Provides the ability to refer to multiple fields in the Query or Mutation root.",
"type": "object",
"required": [
"steps"
],
"properties": {
"steps": {
"description": "Steps are composed together to form a call. If you have multiple steps, the output of the previous step is passed as input to the next step.",
"type": "array",
"items": {
"$ref": "#/definitions/Step"
}
}
}
},
"Cors": {
"description": "Type to configure Cross-Origin Resource Sharing (CORS) for a server.",
"type": "object",
"properties": {
"allowCredentials": {
"description": "Indicates whether the server allows credentials (e.g., cookies, authorization headers) to be sent in cross-origin requests.",
"type": [
"boolean",
"null"
]
},
"allowHeaders": {
"description": "A list of allowed headers in cross-origin requests. This can be used to specify custom headers that are allowed to be included in cross-origin requests.",
"type": "array",
"items": {
"type": "string"
}
},
"allowMethods": {
"description": "A list of allowed HTTP methods in cross-origin requests. These methods specify the actions that are permitted in cross-origin requests.",
"type": "array",
"items": {
"$ref": "#/definitions/Method"
}
},
"allowOrigins": {
"description": "A list of origins that are allowed to access the server's resources in cross-origin requests. An origin can be a domain, a subdomain, or even 'null' for local file schemes.",
"type": "array",
"items": {
"type": "string"
}
},
"allowPrivateNetwork": {
"description": "Indicates whether requests from private network addresses are allowed in cross-origin requests. Private network addresses typically include IP addresses reserved for internal networks.",
"type": [
"boolean",
"null"
]
},
"exposeHeaders": {
"description": "A list of headers that the server exposes to the browser in cross-origin responses. Exposing certain headers allows the client-side code to access them in the response.",
"type": "array",
"items": {
"type": "string"
}
},
"maxAge": {
"description": "The maximum time (in seconds) that the client should cache preflight OPTIONS requests in order to avoid sending excessive requests to the server.",
"type": [
"integer",
"null"
],
"format": "uint",
"minimum": 0.0
},
"vary": {
"description": "A list of header names that indicate the values of which might cause the server's response to vary, potentially affecting caching.",
"default": [
"origin",
"access-control-request-method",
"access-control-request-headers"
],
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Date": {
"title": "Date",
"type": "object",
"required": [
"Date"
],
"properties": {
"Date": {
"description": "A date string, such as 2007-12-03, is compliant with the full-date format outlined in section 5.6 of the RFC 3339 (https://datatracker.ietf.org/doc/html/rfc3339) profile of the ISO 8601 standard for the representation of dates and times using the Gregorian calendar.",
"type": "string"
}
}
},
"Email": {
"title": "Email",
"type": "object",
"required": [
"Email"
],
"properties": {
"Email": {
"description": "field whose value conforms to the standard internet email address format as specified in HTML Spec: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address.",
"type": "string",
"pattern": "/^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/"
}
}
},
"Empty": {
"title": "Empty",
"type": "object",
"required": [
"Empty"
],
"properties": {
"Empty": {
"description": "Empty scalar type represents an empty value.",
"type": "null"
}
}
},
"Encoding": {
"type": "string",
"enum": [
"ApplicationJson",
"ApplicationXWwwFormUrlencoded"
]
},
"Enum": {
"description": "Definition of GraphQL enum type",
"type": "object",
"required": [
"variants"
],
"properties": {
"doc": {
"type": [
"string",
"null"
]
},
"variants": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
}
},
"Expr": {
"description": "The `@expr` operators allows you to specify an expression that can evaluate to a value. The expression can be a static value or built form a Mustache template. schema.",
"type": "object",
"required": [
"body"
],
"properties": {
"body": true
},
"additionalProperties": false
},
"Field": {
"description": "A field definition containing all the metadata information about resolving a field.",
"type": "object",
"properties": {
"args": {
"description": "Map of argument name and its definition.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Arg"
}
},
"cache": {
"description": "Sets the cache configuration for a field",
"anyOf": [
{
"$ref": "#/definitions/Cache"
},
{
"type": "null"
}
]
},
"call": {
"description": "Inserts a call resolver for the field.",
"anyOf": [
{
"$ref": "#/definitions/Call"
},
{
"type": "null"
}
]
},
"doc": {
"description": "Publicly visible documentation for the field.",
"type": [
"string",
"null"
]
},
"expr": {
"description": "Inserts a constant resolver for the field.",
"anyOf": [
{
"$ref": "#/definitions/Expr"
},
{
"type": "null"
}
]
},
"graphql": {
"description": "Inserts a GraphQL resolver for the field.",
"anyOf": [
{
"$ref": "#/definitions/GraphQL"
},
{
"type": "null"
}
]
},
"grpc": {
"description": "Inserts a GRPC resolver for the field.",
"anyOf": [
{
"$ref": "#/definitions/Grpc"
},
{
"type": "null"
}
]
},
"http": {
"description": "Inserts an HTTP resolver for the field.",
"anyOf": [
{
"$ref": "#/definitions/Http"
},
{
"type": "null"
}
]
},
"list": {
"description": "Flag to indicate the type is a list.",
"type": "boolean"
},
"list_type_required": {
"description": "Flag to indicate if the type inside the list is required.",
"type": "boolean"
},
"modify": {
"description": "Allows modifying existing fields.",
"anyOf": [
{
"$ref": "#/definitions/Modify"
},
{
"type": "null"
}
]
},
"omit": {
"description": "Omits a field from public consumption.",
"anyOf": [
{
"$ref": "#/definitions/Omit"
},
{
"type": "null"
}
]
},
"protected": {
"description": "Marks field as protected by auth provider",
"anyOf": [
{
"$ref": "#/definitions/Protected"
},
{
"type": "null"
}
]
},
"required": {
"description": "Flag to indicate the type is required.",
"type": "boolean"
},
"script": {
"description": "Inserts a Javascript resolver for the field.",
"anyOf": [
{
"$ref": "#/definitions/JS"
},
{
"type": "null"
}
]
},
"type": {
"description": "Refers to the type of the value the field can be resolved to.",
"type": "string"
}
}
},
"GraphQL": {
"description": "The @graphQL operator allows to specify GraphQL API server request to fetch data from.",
"type": "object",
"required": [
"name"
],
"properties": {
"args": {
"description": "Named arguments for the requested field. More info [here](https://tailcall.run/docs/guides/operators/#args)",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/KeyValue"
}
},
"baseURL": {
"description": "This refers to the base URL of the API. If not specified, the default base URL is the one specified in the `@upstream` operator.",
"type": [
"string",
"null"
]
},
"batch": {
"description": "If the upstream GraphQL server supports request batching, you can specify the 'batch' argument to batch several requests into a single batch request.\n\nMake sure you have also specified batch settings to the `@upstream` and to the `@graphQL` operator.",
"type": "boolean"
},
"headers": {
"description": "The headers parameter allows you to customize the headers of the GraphQL request made by the `@graphQL` operator. It is used by specifying a key-value map of header names and their values.",
"type": "array",
"items": {
"$ref": "#/definitions/KeyValue"
}
},
"name": {
"description": "Specifies the root field on the upstream to request data from. This maps a field in your schema to a field in the upstream schema. When a query is received for this field, Tailcall requests data from the corresponding upstream field.",
"type": "string"
}
},
"additionalProperties": false
},
"Grpc": {
"description": "The @grpc operator indicates that a field or node is backed by a gRPC API.\n\nFor instance, if you add the @grpc operator to the `users` field of the Query type with a service argument of `NewsService` and method argument of `GetAllNews`, it signifies that the `users` field is backed by a gRPC API. The `service` argument specifies the name of the gRPC service. The `method` argument specifies the name of the gRPC method. In this scenario, the GraphQL server will make a gRPC request to the gRPC endpoint specified when the `users` field is queried.",
"type": "object",
"required": [
"method"
],
"properties": {
"baseURL": {
"description": "This refers to the base URL of the API. If not specified, the default base URL is the one specified in the `@upstream` operator.",
"type": [
"string",
"null"
]
},
"batchKey": {
"description": "The key path in the response which should be used to group multiple requests. For instance `[\"news\",\"id\"]`. For more details please refer out [n + 1 guide](https://tailcall.run/docs/guides/n+1#solving-using-batching).",
"type": "array",
"items": {
"type": "string"
}
},
"body": {
"description": "This refers to the arguments of your gRPC call. You can pass it as a static object or use Mustache template for dynamic parameters. These parameters will be added in the body in `protobuf` format.",
"type": [
"string",
"null"
]
},
"headers": {
"description": "The `headers` parameter allows you to customize the headers of the HTTP request made by the `@grpc` operator. It is used by specifying a key-value map of header names and their values. Note: content-type is automatically set to application/grpc",
"type": "array",
"items": {
"$ref": "#/definitions/KeyValue"
}
},
"method": {
"description": "This refers to the gRPC method you're going to call. For instance `GetAllNews`.",
"type": "string"
}
},
"additionalProperties": false
},
"Headers": {
"type": "object",
"properties": {
"cacheControl": {
"description": "`cacheControl` sends `Cache-Control` headers in responses when activated. The `max-age` value is the least of the values received from upstream services. @default `false`.",
"type": [
"boolean",
"null"
]
},
"cors": {
"description": "`cors` allows Cross-Origin Resource Sharing (CORS) for a server.",
"anyOf": [
{
"$ref": "#/definitions/Cors"
},
{
"type": "null"
}
]
},
"custom": {
"description": "`headers` are key-value pairs included in every server response. Useful for setting headers like `Access-Control-Allow-Origin` for cross-origin requests or additional headers for downstream services.",
"type": "array",
"items": {
"$ref": "#/definitions/KeyValue"
}
},
"experimental": {
"description": "`experimental` allows the use of `X-*` experimental headers in the response. @default `[]`.",
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"uniqueItems": true
},
"setCookies": {
"description": "`setCookies` when enabled stores `set-cookie` headers and all the response will be sent with the headers.",
"type": [
"boolean",
"null"
]
}
}
},
"Http": {
"description": "The @http operator indicates that a field or node is backed by a REST API.\n\nFor instance, if you add the @http operator to the `users` field of the Query type with a path argument of `\"/users\"`, it signifies that the `users` field is backed by a REST API. The path argument specifies the path of the REST API. In this scenario, the GraphQL server will make a GET request to the API endpoint specified when the `users` field is queried.",
"type": "object",
"required": [
"path"
],
"properties": {
"baseURL": {
"description": "This refers to the base URL of the API. If not specified, the default base URL is the one specified in the `@upstream` operator.",
"type": [
"string",
"null"
]
},
"batchKey": {
"description": "The `batchKey` parameter groups multiple data requests into a single call. For more details please refer out [n + 1 guide](https://tailcall.run/docs/guides/n+1#solving-using-batching).",
"type": "array",
"items": {
"type": "string"
}
},
"body": {
"description": "The body of the API call. It's used for methods like POST or PUT that send data to the server. You can pass it as a static object or use a Mustache template to substitute variables from the GraphQL variables.",
"type": [
"string",
"null"
]
},
"encoding": {
"description": "The `encoding` parameter specifies the encoding of the request body. It can be `ApplicationJson` or `ApplicationXWwwFormUrlEncoded`. @default `ApplicationJson`.",
"allOf": [
{
"$ref": "#/definitions/Encoding"
}
]
},
"headers": {
"description": "The `headers` parameter allows you to customize the headers of the HTTP request made by the `@http` operator. It is used by specifying a key-value map of header names and their values.",
"type": "array",
"items": {
"$ref": "#/definitions/KeyValue"
}
},
"input": {
"description": "Schema of the input of the API call. It is automatically inferred in most cases.",
"anyOf": [
{
"$ref": "#/definitions/schema"
},
{
"type": "null"
}
]
},
"method": {
"description": "This refers to the HTTP method of the API call. Commonly used methods include `GET`, `POST`, `PUT`, `DELETE` etc. @default `GET`.",
"allOf": [
{
"$ref": "#/definitions/Method"
}
]
},
"output": {
"description": "Schema of the output of the API call. It is automatically inferred in most cases.",
"anyOf": [
{
"$ref": "#/definitions/schema"
},
{
"type": "null"
}
]
},
"path": {
"description": "This refers to the API endpoint you're going to call. For instance `https://jsonplaceholder.typicode.com/users`.\n\nFor dynamic segments in your API endpoint, use Mustache templates for variable substitution. For instance, to fetch a specific user, use `/users/{{args.id}}`.",
"type": "string"
},
"query": {
"description": "This represents the query parameters of your API call. You can pass it as a static object or use Mustache template for dynamic parameters. These parameters will be added to the URL.",
"type": "array",
"items": {
"$ref": "#/definitions/KeyValue"
}
}
},
"additionalProperties": false
},
"HttpVersion": {
"type": "string",
"enum": [
"HTTP1",
"HTTP2"
]
},
"JS": {
"type": "object",
"required": [
"script"
],
"properties": {
"script": {
"type": "string"
}
}
},
"JSON": {
"title": "JSON",
"type": "object",
"required": [
"JSON"
],
"properties": {
"JSON": {
"description": "The JSON scalar type represents JSON values as specified by [ECMA-404](www.ecma-international.org/publications/files/ECMA-ST/ ECMA-404.pdf).",
"type": "string"
}
}
},
"KeyValue": {
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"Link": {
"description": "The @link directive allows you to import external resources, such as configuration – which will be merged into the config importing it –, or a .proto file – which will be later used by `@grpc` directive –.",
"type": "object",
"properties": {
"id": {
"description": "The id of the link. It is used to reference the link in the schema.",
"type": [
"string",
"null"
]
},
"src": {
"description": "The source of the link. It can be a URL or a path to a file. If a path is provided, it is relative to the file that imports the link.",
"type": "string"
},
"type": {
"description": "The type of the link. It can be `Config`, or `Protobuf`.",
"allOf": [
{
"$ref": "#/definitions/LinkType"
}
]
}
},
"additionalProperties": false
},
"LinkType": {
"type": "string",
"enum": [
"Config",
"Protobuf",
"Script",
"Cert",
"Key",
"Operation",
"Htpasswd",
"Jwks",
"Grpc"
]
},
"Method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
"HEAD",
"OPTIONS",
"CONNECT",
"TRACE"
]
},
"Modify": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"omit": {
"type": [
"boolean",
"null"
]
}
},
"additionalProperties": false
},
"Omit": {
"description": "Used to omit a field from public consumption.",
"type": "object",
"additionalProperties": false
},
"OtlpExporter": {
"description": "Output the opentelemetry data to otlp collector",
"type": "object",
"required": [
"url"
],
"properties": {
"headers": {
"type": "array",
"items": {
"$ref": "#/definitions/KeyValue"
}
},
"url": {
"type": "string"
}
}
},
"PhoneNumber": {
"title": "PhoneNumber",
"type": "object",
"required": [
"PhoneNumber"
],
"properties": {
"PhoneNumber": {
"description": "A field whose value conforms to the standard E.164 format as specified in E.164 specification (https://en.wikipedia.org/wiki/E.164).",
"type": "string"
}
}
},
"PrometheusExporter": {
"description": "Output the telemetry metrics data to prometheus server",
"type": "object",
"properties": {
"format": {
"$ref": "#/definitions/PrometheusFormat"
},
"path": {
"default": "/metrics",
"type": "string"
}
}
},
"PrometheusFormat": {
"description": "Output format for prometheus data",
"type": "string",
"enum": [
"text",
"protobuf"
]
},
"Protected": {
"type": "object"
},
"Proxy": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
},
"RootSchema": {
"type": "object",
"properties": {
"mutation": {
"type": [
"string",
"null"
]
},
"query": {
"type": [
"string",
"null"
]
},
"subscription": {
"type": [
"string",
"null"
]
}
}
},
"ScriptOptions": {
"type": "object",
"properties": {
"timeout": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
}
}
},
"Server": {
"description": "The `@server` directive, when applied at the schema level, offers a comprehensive set of server configurations. It dictates how the server behaves and helps tune tailcall for various use-cases.",
"type": "object",
"properties": {
"apolloTracing": {
"description": "`apolloTracing` exposes GraphQL query performance data, including execution time of queries and individual resolvers.",
"type": [
"boolean",
"null"
]
},
"batchRequests": {
"description": "`batchRequests` combines multiple requests into one, improving performance but potentially introducing latency and complicating debugging. Use judiciously. @default `false`.",
"type": [
"boolean",
"null"
]
},
"globalResponseTimeout": {
"description": "`globalResponseTimeout` sets the maximum query duration before termination, acting as a safeguard against long-running queries.",
"type": [
"integer",
"null"
],
"format": "int64"
},
"headers": {
"description": "`headers` contains key-value pairs that are included as default headers in server responses, allowing for consistent header management across all responses.",
"anyOf": [
{
"$ref": "#/definitions/Headers"
},
{
"type": "null"
}