@xyd-js/gql 0.1.0-xyd.12 → 0.1.0-xyd.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/TODO.md +8 -0
  3. package/__fixtures__/-1.opendocs.docs-nested/input.graphql +66 -0
  4. package/__fixtures__/-1.opendocs.docs-nested/output.json +554 -0
  5. package/__fixtures__/-1.opendocs.flat/input.graphql +19 -0
  6. package/__fixtures__/-1.opendocs.flat/output.json +243 -0
  7. package/__fixtures__/-1.opendocs.scopes/input.graphql +33 -0
  8. package/__fixtures__/-1.opendocs.scopes/output.json +378 -0
  9. package/__fixtures__/-1.opendocs.sidebar/input.graphql +44 -0
  10. package/__fixtures__/-1.opendocs.sort/input.graphql +92 -0
  11. package/__fixtures__/-1.opendocs.sort/output.json +1078 -0
  12. package/__fixtures__/-1.opendocs.sort+group/input.graphql +111 -0
  13. package/__fixtures__/-1.opendocs.sort+group/output.json +1114 -0
  14. package/__fixtures__/-1.opendocs.sort+group+path/input.graphql +118 -0
  15. package/__fixtures__/-1.opendocs.sort+group+path/output.json +1114 -0
  16. package/__fixtures__/-2.complex.github/input.graphql +69424 -0
  17. package/__fixtures__/-2.complex.github/output.json +269874 -0
  18. package/__fixtures__/-2.complex.livesession/input.graphql +23 -0
  19. package/__fixtures__/-2.complex.livesession/output.json +302 -0
  20. package/__fixtures__/-2.complex.monday/input.graphql +6089 -0
  21. package/__fixtures__/-2.complex.monday/output.json +1 -0
  22. package/__fixtures__/-3.array-non-null-return/input.graphql +9 -0
  23. package/__fixtures__/-3.array-non-null-return/output.json +151 -0
  24. package/__fixtures__/1.basic/input.graphql +118 -0
  25. package/__fixtures__/1.basic/output.json +630 -0
  26. package/__fixtures__/2.circular/input.graphql +17 -0
  27. package/__fixtures__/2.circular/output.json +248 -0
  28. package/__fixtures__/3.opendocs/input.graphql +27 -0
  29. package/__fixtures__/3.opendocs/output.json +338 -0
  30. package/__fixtures__/4.union/input.graphql +19 -0
  31. package/__fixtures__/4.union/output.json +344 -0
  32. package/__fixtures__/5.flat/input.graphql +27 -0
  33. package/__fixtures__/5.flat/output.json +383 -0
  34. package/__fixtures__/6.default-values/input.graphql +47 -0
  35. package/__fixtures__/6.default-values/output.json +655 -0
  36. package/__fixtures__/7.type-args/input.graphql +19 -0
  37. package/__fixtures__/7.type-args/output.json +301 -0
  38. package/__fixtures__/8.default-sort/input.graphql +60 -0
  39. package/__fixtures__/8.default-sort/output.json +1078 -0
  40. package/__tests__/gqlSchemaToReferences.test.ts +109 -0
  41. package/__tests__/utils.ts +45 -0
  42. package/declarations.d.ts +4 -0
  43. package/dist/index.d.ts +17 -1
  44. package/dist/index.js +1334 -19871
  45. package/dist/index.js.map +1 -1
  46. package/dist/opendocs.graphql +56 -0
  47. package/package.json +7 -6
  48. package/src/context.ts +17 -0
  49. package/src/converters/gql-arg.ts +51 -0
  50. package/src/converters/gql-enum.ts +27 -0
  51. package/src/converters/gql-field.ts +164 -0
  52. package/src/converters/gql-input.ts +34 -0
  53. package/src/converters/gql-interface.ts +35 -0
  54. package/src/converters/gql-mutation.ts +36 -0
  55. package/src/converters/gql-object.ts +83 -0
  56. package/src/converters/gql-operation.ts +128 -0
  57. package/src/converters/gql-query.ts +36 -0
  58. package/src/converters/gql-sample.ts +159 -0
  59. package/src/converters/gql-scalar.ts +16 -0
  60. package/src/converters/gql-subscription.ts +36 -0
  61. package/src/converters/gql-types.ts +195 -0
  62. package/src/converters/gql-union.ts +40 -0
  63. package/src/gql-core.ts +362 -0
  64. package/src/opendocs.graphql +56 -0
  65. package/src/opendocs.ts +253 -0
  66. package/src/schema.ts +253 -67
  67. package/src/types.ts +103 -0
  68. package/src/utils.ts +21 -96
  69. package/tsconfig.json +1 -1
  70. package/tsup.config.ts +15 -1
  71. package/vitest.config.ts +15 -1
  72. package/examples/basic/index.ts +0 -12
  73. package/examples/basic/schema.graphqls +0 -89
  74. package/examples/basic/todo-app.graphqls +0 -184
  75. package/examples/graphql-types/graphql-types.0.basic.graphqls +0 -28
  76. package/examples/nested/nested-arg.0.not-required.graphqls +0 -8
  77. package/examples/nested/nested-arg.0.required.graphqls +0 -8
  78. package/examples/nested/nested-arg.1.deep.graphqls +0 -12
  79. package/src/hydration/README.md +0 -1
  80. package/src/hydration/gql-arg.ts +0 -53
  81. package/src/hydration/gql-field.ts +0 -206
  82. package/src/hydration/gql-input.ts +0 -67
  83. package/src/hydration/gql-object.ts +0 -35
  84. package/src/hydration/gql-types.ts +0 -50
  85. package/src/samples/index.ts +0 -95
  86. package/test/graphql-types.0.test.ts +0 -125
  87. package/test/nested-arg.0.test.ts +0 -208
  88. package/test/nested-arg.1.test.ts +0 -19
@@ -0,0 +1,1078 @@
1
+ [
2
+ {
3
+ "title": "user",
4
+ "description": "",
5
+ "canonical": "queries/user",
6
+ "category": "graphql",
7
+ "type": "graphql_query",
8
+ "context": {
9
+ "graphqlTypeShort": "query",
10
+ "graphqlName": "user",
11
+ "group": [
12
+ "Queries"
13
+ ],
14
+ "scopes": []
15
+ },
16
+ "examples": {
17
+ "groups": [
18
+ {
19
+ "description": "",
20
+ "examples": [
21
+ {
22
+ "codeblock": {
23
+ "tabs": [
24
+ {
25
+ "title": "",
26
+ "language": "graphql",
27
+ "code": "query user($id: ID!) {\n user(id: $id) {\n # user fields\n }\n}"
28
+ }
29
+ ]
30
+ }
31
+ }
32
+ ]
33
+ }
34
+ ]
35
+ },
36
+ "definitions": [
37
+ {
38
+ "title": "Arguments",
39
+ "properties": [
40
+ {
41
+ "name": "id",
42
+ "type": "ID!",
43
+ "description": "",
44
+ "context": {
45
+ "graphqlName": "id",
46
+ "graphqlTypeFlat": "ID",
47
+ "graphqlBuiltInType": true
48
+ },
49
+ "properties": [],
50
+ "meta": [
51
+ {
52
+ "name": "required",
53
+ "value": "true"
54
+ }
55
+ ],
56
+ "symbolDef": {
57
+ "canonical": "/id"
58
+ }
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "title": "Returns",
64
+ "properties": [
65
+ {
66
+ "name": "",
67
+ "type": "User",
68
+ "description": "",
69
+ "context": {
70
+ "graphqlName": "user",
71
+ "graphqlTypeFlat": "User",
72
+ "graphqlBuiltInType": false
73
+ },
74
+ "properties": [],
75
+ "meta": [],
76
+ "symbolDef": {
77
+ "canonical": "objects/User"
78
+ }
79
+ }
80
+ ]
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "title": "users",
86
+ "description": "",
87
+ "canonical": "queries/users",
88
+ "category": "graphql",
89
+ "type": "graphql_query",
90
+ "context": {
91
+ "graphqlTypeShort": "query",
92
+ "graphqlName": "users",
93
+ "group": [
94
+ "Queries"
95
+ ],
96
+ "scopes": []
97
+ },
98
+ "examples": {
99
+ "groups": [
100
+ {
101
+ "description": "",
102
+ "examples": [
103
+ {
104
+ "codeblock": {
105
+ "tabs": [
106
+ {
107
+ "title": "",
108
+ "language": "graphql",
109
+ "code": "{\n users {\n # users fields\n }\n}"
110
+ }
111
+ ]
112
+ }
113
+ }
114
+ ]
115
+ }
116
+ ]
117
+ },
118
+ "definitions": [
119
+ {
120
+ "title": "Arguments",
121
+ "properties": []
122
+ },
123
+ {
124
+ "title": "Returns",
125
+ "properties": [
126
+ {
127
+ "name": "",
128
+ "type": "[User!]!",
129
+ "description": "",
130
+ "context": {
131
+ "graphqlName": "users",
132
+ "graphqlTypeFlat": "User",
133
+ "graphqlBuiltInType": false
134
+ },
135
+ "properties": [],
136
+ "meta": [
137
+ {
138
+ "name": "required",
139
+ "value": "true"
140
+ }
141
+ ],
142
+ "symbolDef": {
143
+ "canonical": "objects/User"
144
+ }
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "title": "search",
152
+ "description": "",
153
+ "canonical": "queries/search",
154
+ "category": "graphql",
155
+ "type": "graphql_query",
156
+ "context": {
157
+ "graphqlTypeShort": "query",
158
+ "graphqlName": "search",
159
+ "group": [
160
+ "Queries"
161
+ ],
162
+ "scopes": []
163
+ },
164
+ "examples": {
165
+ "groups": [
166
+ {
167
+ "description": "",
168
+ "examples": [
169
+ {
170
+ "codeblock": {
171
+ "tabs": [
172
+ {
173
+ "title": "",
174
+ "language": "graphql",
175
+ "code": "{\n search(query: \"example-query\") {\n # search fields\n }\n}"
176
+ }
177
+ ]
178
+ }
179
+ }
180
+ ]
181
+ }
182
+ ]
183
+ },
184
+ "definitions": [
185
+ {
186
+ "title": "Arguments",
187
+ "properties": [
188
+ {
189
+ "name": "query",
190
+ "type": "String!",
191
+ "description": "",
192
+ "context": {
193
+ "graphqlName": "query",
194
+ "graphqlTypeFlat": "String",
195
+ "graphqlBuiltInType": true
196
+ },
197
+ "properties": [],
198
+ "meta": [
199
+ {
200
+ "name": "required",
201
+ "value": "true"
202
+ }
203
+ ],
204
+ "symbolDef": {
205
+ "canonical": "/query"
206
+ }
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "title": "Returns",
212
+ "properties": [
213
+ {
214
+ "name": "",
215
+ "type": "[SearchResult!]!",
216
+ "description": "",
217
+ "context": {
218
+ "graphqlName": "search",
219
+ "graphqlTypeFlat": "SearchResult",
220
+ "graphqlBuiltInType": false
221
+ },
222
+ "properties": [],
223
+ "meta": [
224
+ {
225
+ "name": "required",
226
+ "value": "true"
227
+ }
228
+ ],
229
+ "symbolDef": {
230
+ "canonical": "unions/SearchResult"
231
+ }
232
+ }
233
+ ]
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "title": "createUser",
239
+ "description": "",
240
+ "canonical": "mutations/createUser",
241
+ "category": "graphql",
242
+ "type": "graphql_mutation",
243
+ "context": {
244
+ "graphqlTypeShort": "mutation",
245
+ "graphqlName": "createUser",
246
+ "group": [
247
+ "Mutations"
248
+ ],
249
+ "scopes": []
250
+ },
251
+ "examples": {
252
+ "groups": [
253
+ {
254
+ "description": "",
255
+ "examples": [
256
+ {
257
+ "codeblock": {
258
+ "tabs": [
259
+ {
260
+ "title": "",
261
+ "language": "graphql",
262
+ "code": "mutation createUser($input: UserInput!) {\n createUser(input: $input) {\n # createUser fields\n }\n}"
263
+ }
264
+ ]
265
+ }
266
+ }
267
+ ]
268
+ }
269
+ ]
270
+ },
271
+ "definitions": [
272
+ {
273
+ "title": "Arguments",
274
+ "properties": [
275
+ {
276
+ "name": "input",
277
+ "type": "UserInput!",
278
+ "description": "",
279
+ "context": {
280
+ "graphqlTypeShort": "input",
281
+ "graphqlName": "UserInput",
282
+ "group": [
283
+ "Inputs"
284
+ ],
285
+ "scopes": []
286
+ },
287
+ "properties": [],
288
+ "meta": [
289
+ {
290
+ "name": "required",
291
+ "value": "true"
292
+ }
293
+ ],
294
+ "symbolDef": {
295
+ "canonical": "inputs/UserInput"
296
+ }
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ "title": "Returns",
302
+ "properties": [
303
+ {
304
+ "name": "",
305
+ "type": "User!",
306
+ "description": "",
307
+ "context": {
308
+ "graphqlName": "createUser",
309
+ "graphqlTypeFlat": "User",
310
+ "graphqlBuiltInType": false
311
+ },
312
+ "properties": [],
313
+ "meta": [
314
+ {
315
+ "name": "required",
316
+ "value": "true"
317
+ }
318
+ ],
319
+ "symbolDef": {
320
+ "canonical": "objects/User"
321
+ }
322
+ }
323
+ ]
324
+ }
325
+ ]
326
+ },
327
+ {
328
+ "title": "updateUser",
329
+ "description": "",
330
+ "canonical": "mutations/updateUser",
331
+ "category": "graphql",
332
+ "type": "graphql_mutation",
333
+ "context": {
334
+ "graphqlTypeShort": "mutation",
335
+ "graphqlName": "updateUser",
336
+ "group": [
337
+ "Mutations"
338
+ ],
339
+ "scopes": []
340
+ },
341
+ "examples": {
342
+ "groups": [
343
+ {
344
+ "description": "",
345
+ "examples": [
346
+ {
347
+ "codeblock": {
348
+ "tabs": [
349
+ {
350
+ "title": "",
351
+ "language": "graphql",
352
+ "code": "mutation updateUser($id: ID!, $input: UserInput!) {\n updateUser(id: $id, input: $input) {\n # updateUser fields\n }\n}"
353
+ }
354
+ ]
355
+ }
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ },
361
+ "definitions": [
362
+ {
363
+ "title": "Arguments",
364
+ "properties": [
365
+ {
366
+ "name": "id",
367
+ "type": "ID!",
368
+ "description": "",
369
+ "context": {
370
+ "graphqlName": "id",
371
+ "graphqlTypeFlat": "ID",
372
+ "graphqlBuiltInType": true
373
+ },
374
+ "properties": [],
375
+ "meta": [
376
+ {
377
+ "name": "required",
378
+ "value": "true"
379
+ }
380
+ ],
381
+ "symbolDef": {
382
+ "canonical": "/id"
383
+ }
384
+ },
385
+ {
386
+ "name": "input",
387
+ "type": "UserInput!",
388
+ "description": "",
389
+ "context": {
390
+ "graphqlTypeShort": "input",
391
+ "graphqlName": "UserInput",
392
+ "group": [
393
+ "Inputs"
394
+ ],
395
+ "scopes": []
396
+ },
397
+ "properties": [],
398
+ "meta": [
399
+ {
400
+ "name": "required",
401
+ "value": "true"
402
+ }
403
+ ],
404
+ "symbolDef": {
405
+ "canonical": "inputs/UserInput"
406
+ }
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ "title": "Returns",
412
+ "properties": [
413
+ {
414
+ "name": "",
415
+ "type": "User!",
416
+ "description": "",
417
+ "context": {
418
+ "graphqlName": "updateUser",
419
+ "graphqlTypeFlat": "User",
420
+ "graphqlBuiltInType": false
421
+ },
422
+ "properties": [],
423
+ "meta": [
424
+ {
425
+ "name": "required",
426
+ "value": "true"
427
+ }
428
+ ],
429
+ "symbolDef": {
430
+ "canonical": "objects/User"
431
+ }
432
+ }
433
+ ]
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "title": "userCreated",
439
+ "description": "",
440
+ "canonical": "subscriptions/userCreated",
441
+ "category": "graphql",
442
+ "type": "graphql_subscription",
443
+ "context": {
444
+ "graphqlTypeShort": "subscription",
445
+ "graphqlName": "userCreated",
446
+ "group": [
447
+ "Subscriptions"
448
+ ],
449
+ "scopes": []
450
+ },
451
+ "examples": {
452
+ "groups": [
453
+ {
454
+ "description": "",
455
+ "examples": [
456
+ {
457
+ "codeblock": {
458
+ "tabs": [
459
+ {
460
+ "title": "",
461
+ "language": "graphql",
462
+ "code": "subscription {\n userCreated {\n # userCreated fields\n }\n}"
463
+ }
464
+ ]
465
+ }
466
+ }
467
+ ]
468
+ }
469
+ ]
470
+ },
471
+ "definitions": [
472
+ {
473
+ "title": "Arguments",
474
+ "properties": []
475
+ },
476
+ {
477
+ "title": "Returns",
478
+ "properties": [
479
+ {
480
+ "name": "",
481
+ "type": "User!",
482
+ "description": "",
483
+ "context": {
484
+ "graphqlName": "userCreated",
485
+ "graphqlTypeFlat": "User",
486
+ "graphqlBuiltInType": false
487
+ },
488
+ "properties": [],
489
+ "meta": [
490
+ {
491
+ "name": "required",
492
+ "value": "true"
493
+ }
494
+ ],
495
+ "symbolDef": {
496
+ "canonical": "objects/User"
497
+ }
498
+ }
499
+ ]
500
+ }
501
+ ]
502
+ },
503
+ {
504
+ "title": "userUpdated",
505
+ "description": "",
506
+ "canonical": "subscriptions/userUpdated",
507
+ "category": "graphql",
508
+ "type": "graphql_subscription",
509
+ "context": {
510
+ "graphqlTypeShort": "subscription",
511
+ "graphqlName": "userUpdated",
512
+ "group": [
513
+ "Subscriptions"
514
+ ],
515
+ "scopes": []
516
+ },
517
+ "examples": {
518
+ "groups": [
519
+ {
520
+ "description": "",
521
+ "examples": [
522
+ {
523
+ "codeblock": {
524
+ "tabs": [
525
+ {
526
+ "title": "",
527
+ "language": "graphql",
528
+ "code": "subscription {\n userUpdated {\n # userUpdated fields\n }\n}"
529
+ }
530
+ ]
531
+ }
532
+ }
533
+ ]
534
+ }
535
+ ]
536
+ },
537
+ "definitions": [
538
+ {
539
+ "title": "Arguments",
540
+ "properties": []
541
+ },
542
+ {
543
+ "title": "Returns",
544
+ "properties": [
545
+ {
546
+ "name": "",
547
+ "type": "User!",
548
+ "description": "",
549
+ "context": {
550
+ "graphqlName": "userUpdated",
551
+ "graphqlTypeFlat": "User",
552
+ "graphqlBuiltInType": false
553
+ },
554
+ "properties": [],
555
+ "meta": [
556
+ {
557
+ "name": "required",
558
+ "value": "true"
559
+ }
560
+ ],
561
+ "symbolDef": {
562
+ "canonical": "objects/User"
563
+ }
564
+ }
565
+ ]
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "title": "User",
571
+ "description": "",
572
+ "canonical": "objects/User",
573
+ "category": "graphql",
574
+ "type": "graphql_object",
575
+ "context": {
576
+ "graphqlTypeShort": "object",
577
+ "graphqlName": "User",
578
+ "group": [
579
+ "Objects"
580
+ ],
581
+ "scopes": []
582
+ },
583
+ "examples": {
584
+ "groups": []
585
+ },
586
+ "definitions": [
587
+ {
588
+ "title": "Arguments",
589
+ "properties": [],
590
+ "variants": [],
591
+ "meta": [
592
+ {
593
+ "name": "type",
594
+ "value": "arguments"
595
+ }
596
+ ]
597
+ },
598
+ {
599
+ "title": "Fields",
600
+ "properties": [
601
+ {
602
+ "name": "id",
603
+ "type": "ID!",
604
+ "description": "",
605
+ "context": {
606
+ "graphqlName": "id",
607
+ "graphqlTypeFlat": "ID",
608
+ "graphqlBuiltInType": true
609
+ },
610
+ "properties": [],
611
+ "meta": [
612
+ {
613
+ "name": "required",
614
+ "value": "true"
615
+ }
616
+ ],
617
+ "symbolDef": {
618
+ "canonical": "/id"
619
+ }
620
+ },
621
+ {
622
+ "name": "name",
623
+ "type": "String!",
624
+ "description": "",
625
+ "context": {
626
+ "graphqlName": "name",
627
+ "graphqlTypeFlat": "String",
628
+ "graphqlBuiltInType": true
629
+ },
630
+ "properties": [],
631
+ "meta": [
632
+ {
633
+ "name": "required",
634
+ "value": "true"
635
+ }
636
+ ],
637
+ "symbolDef": {
638
+ "canonical": "/name"
639
+ }
640
+ },
641
+ {
642
+ "name": "email",
643
+ "type": "String!",
644
+ "description": "",
645
+ "context": {
646
+ "graphqlName": "email",
647
+ "graphqlTypeFlat": "String",
648
+ "graphqlBuiltInType": true
649
+ },
650
+ "properties": [],
651
+ "meta": [
652
+ {
653
+ "name": "required",
654
+ "value": "true"
655
+ }
656
+ ],
657
+ "symbolDef": {
658
+ "canonical": "/email"
659
+ }
660
+ },
661
+ {
662
+ "name": "role",
663
+ "type": "UserRole!",
664
+ "description": "",
665
+ "context": {
666
+ "graphqlName": "role",
667
+ "graphqlTypeFlat": "UserRole",
668
+ "graphqlBuiltInType": false
669
+ },
670
+ "properties": [],
671
+ "meta": [
672
+ {
673
+ "name": "required",
674
+ "value": "true"
675
+ }
676
+ ],
677
+ "symbolDef": {
678
+ "canonical": "enums/UserRole"
679
+ }
680
+ },
681
+ {
682
+ "name": "createdAt",
683
+ "type": "DateTime!",
684
+ "description": "",
685
+ "context": {
686
+ "graphqlName": "createdAt",
687
+ "graphqlTypeFlat": "DateTime",
688
+ "graphqlBuiltInType": false
689
+ },
690
+ "properties": [],
691
+ "meta": [
692
+ {
693
+ "name": "required",
694
+ "value": "true"
695
+ }
696
+ ],
697
+ "symbolDef": {
698
+ "canonical": "scalars/DateTime"
699
+ }
700
+ }
701
+ ],
702
+ "meta": [
703
+ {
704
+ "name": "type",
705
+ "value": "fields"
706
+ }
707
+ ]
708
+ }
709
+ ]
710
+ },
711
+ {
712
+ "title": "Post",
713
+ "description": "",
714
+ "canonical": "objects/Post",
715
+ "category": "graphql",
716
+ "type": "graphql_object",
717
+ "context": {
718
+ "graphqlTypeShort": "object",
719
+ "graphqlName": "Post",
720
+ "group": [
721
+ "Objects"
722
+ ],
723
+ "scopes": []
724
+ },
725
+ "examples": {
726
+ "groups": []
727
+ },
728
+ "definitions": [
729
+ {
730
+ "title": "Arguments",
731
+ "properties": [],
732
+ "variants": [],
733
+ "meta": [
734
+ {
735
+ "name": "type",
736
+ "value": "arguments"
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "title": "Fields",
742
+ "properties": [
743
+ {
744
+ "name": "id",
745
+ "type": "ID!",
746
+ "description": "",
747
+ "context": {
748
+ "graphqlName": "id",
749
+ "graphqlTypeFlat": "ID",
750
+ "graphqlBuiltInType": true
751
+ },
752
+ "properties": [],
753
+ "meta": [
754
+ {
755
+ "name": "required",
756
+ "value": "true"
757
+ }
758
+ ],
759
+ "symbolDef": {
760
+ "canonical": "/id"
761
+ }
762
+ },
763
+ {
764
+ "name": "title",
765
+ "type": "String!",
766
+ "description": "",
767
+ "context": {
768
+ "graphqlName": "title",
769
+ "graphqlTypeFlat": "String",
770
+ "graphqlBuiltInType": true
771
+ },
772
+ "properties": [],
773
+ "meta": [
774
+ {
775
+ "name": "required",
776
+ "value": "true"
777
+ }
778
+ ],
779
+ "symbolDef": {
780
+ "canonical": "/title"
781
+ }
782
+ },
783
+ {
784
+ "name": "content",
785
+ "type": "String!",
786
+ "description": "",
787
+ "context": {
788
+ "graphqlName": "content",
789
+ "graphqlTypeFlat": "String",
790
+ "graphqlBuiltInType": true
791
+ },
792
+ "properties": [],
793
+ "meta": [
794
+ {
795
+ "name": "required",
796
+ "value": "true"
797
+ }
798
+ ],
799
+ "symbolDef": {
800
+ "canonical": "/content"
801
+ }
802
+ },
803
+ {
804
+ "name": "author",
805
+ "type": "User!",
806
+ "description": "",
807
+ "context": {
808
+ "graphqlName": "author",
809
+ "graphqlTypeFlat": "User",
810
+ "graphqlBuiltInType": false
811
+ },
812
+ "properties": [],
813
+ "meta": [
814
+ {
815
+ "name": "required",
816
+ "value": "true"
817
+ }
818
+ ],
819
+ "symbolDef": {
820
+ "canonical": "objects/User"
821
+ }
822
+ }
823
+ ],
824
+ "meta": [
825
+ {
826
+ "name": "type",
827
+ "value": "fields"
828
+ }
829
+ ]
830
+ }
831
+ ]
832
+ },
833
+ {
834
+ "title": "Node",
835
+ "description": "",
836
+ "canonical": "interfaces/Node",
837
+ "category": "graphql",
838
+ "type": "graphql_interface",
839
+ "context": {
840
+ "graphqlTypeShort": "interface",
841
+ "graphqlName": "Node",
842
+ "group": [
843
+ "Interfaces"
844
+ ],
845
+ "scopes": []
846
+ },
847
+ "examples": {
848
+ "groups": []
849
+ },
850
+ "definitions": [
851
+ {
852
+ "title": "Fields",
853
+ "properties": [
854
+ {
855
+ "name": "id",
856
+ "type": "ID!",
857
+ "description": "",
858
+ "context": {
859
+ "graphqlName": "id",
860
+ "graphqlTypeFlat": "ID",
861
+ "graphqlBuiltInType": true
862
+ },
863
+ "properties": [],
864
+ "meta": [
865
+ {
866
+ "name": "required",
867
+ "value": "true"
868
+ }
869
+ ],
870
+ "symbolDef": {
871
+ "canonical": "/id"
872
+ }
873
+ }
874
+ ]
875
+ }
876
+ ]
877
+ },
878
+ {
879
+ "title": "SearchResult",
880
+ "description": "",
881
+ "canonical": "unions/SearchResult",
882
+ "category": "graphql",
883
+ "type": "graphql_union",
884
+ "context": {
885
+ "graphqlTypeShort": "union",
886
+ "graphqlName": "SearchResult",
887
+ "group": [
888
+ "Unions"
889
+ ],
890
+ "scopes": []
891
+ },
892
+ "examples": {
893
+ "groups": []
894
+ },
895
+ "definitions": [
896
+ {
897
+ "title": "Possible types",
898
+ "properties": [
899
+ {
900
+ "name": "User",
901
+ "type": "User",
902
+ "description": "",
903
+ "context": {
904
+ "graphqlTypeShort": "object",
905
+ "graphqlName": "User",
906
+ "group": [
907
+ "Objects"
908
+ ],
909
+ "scopes": []
910
+ },
911
+ "properties": [],
912
+ "meta": [],
913
+ "symbolDef": {
914
+ "canonical": "objects/User"
915
+ }
916
+ },
917
+ {
918
+ "name": "Post",
919
+ "type": "Post",
920
+ "description": "",
921
+ "context": {
922
+ "graphqlTypeShort": "object",
923
+ "graphqlName": "Post",
924
+ "group": [
925
+ "Objects"
926
+ ],
927
+ "scopes": []
928
+ },
929
+ "properties": [],
930
+ "meta": [],
931
+ "symbolDef": {
932
+ "canonical": "objects/Post"
933
+ }
934
+ }
935
+ ]
936
+ }
937
+ ]
938
+ },
939
+ {
940
+ "title": "UserInput",
941
+ "description": "",
942
+ "canonical": "inputs/UserInput",
943
+ "category": "graphql",
944
+ "type": "graphql_input",
945
+ "context": {
946
+ "graphqlTypeShort": "input",
947
+ "graphqlName": "UserInput",
948
+ "group": [
949
+ "Inputs"
950
+ ],
951
+ "scopes": []
952
+ },
953
+ "examples": {
954
+ "groups": []
955
+ },
956
+ "definitions": [
957
+ {
958
+ "title": "Fields",
959
+ "properties": [
960
+ {
961
+ "name": "name",
962
+ "type": "String!",
963
+ "description": "",
964
+ "context": {
965
+ "graphqlName": "name",
966
+ "graphqlTypeFlat": "String",
967
+ "graphqlBuiltInType": true
968
+ },
969
+ "properties": [],
970
+ "meta": [
971
+ {
972
+ "name": "required",
973
+ "value": "true"
974
+ }
975
+ ],
976
+ "symbolDef": {
977
+ "canonical": "/name"
978
+ }
979
+ },
980
+ {
981
+ "name": "email",
982
+ "type": "String!",
983
+ "description": "",
984
+ "context": {
985
+ "graphqlName": "email",
986
+ "graphqlTypeFlat": "String",
987
+ "graphqlBuiltInType": true
988
+ },
989
+ "properties": [],
990
+ "meta": [
991
+ {
992
+ "name": "required",
993
+ "value": "true"
994
+ }
995
+ ],
996
+ "symbolDef": {
997
+ "canonical": "/email"
998
+ }
999
+ },
1000
+ {
1001
+ "name": "role",
1002
+ "type": "UserRole",
1003
+ "description": "",
1004
+ "context": {
1005
+ "graphqlName": "role",
1006
+ "graphqlTypeFlat": "UserRole",
1007
+ "graphqlBuiltInType": false
1008
+ },
1009
+ "properties": [],
1010
+ "meta": [],
1011
+ "symbolDef": {
1012
+ "canonical": "enums/UserRole"
1013
+ }
1014
+ }
1015
+ ]
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "title": "UserRole",
1021
+ "description": "",
1022
+ "canonical": "enums/UserRole",
1023
+ "category": "graphql",
1024
+ "type": "graphql_enum",
1025
+ "context": {
1026
+ "graphqlTypeShort": "enum",
1027
+ "graphqlName": "UserRole",
1028
+ "group": [
1029
+ "Enums"
1030
+ ],
1031
+ "scopes": []
1032
+ },
1033
+ "examples": {
1034
+ "groups": []
1035
+ },
1036
+ "definitions": [
1037
+ {
1038
+ "title": "Valid values",
1039
+ "properties": [
1040
+ {
1041
+ "name": "ADMIN",
1042
+ "type": "string",
1043
+ "description": ""
1044
+ },
1045
+ {
1046
+ "name": "USER",
1047
+ "type": "string",
1048
+ "description": ""
1049
+ },
1050
+ {
1051
+ "name": "GUEST",
1052
+ "type": "string",
1053
+ "description": ""
1054
+ }
1055
+ ]
1056
+ }
1057
+ ]
1058
+ },
1059
+ {
1060
+ "title": "DateTime",
1061
+ "description": "",
1062
+ "canonical": "scalars/DateTime",
1063
+ "category": "graphql",
1064
+ "type": "graphql_scalar",
1065
+ "context": {
1066
+ "graphqlTypeShort": "scalar",
1067
+ "graphqlName": "DateTime",
1068
+ "group": [
1069
+ "Scalars"
1070
+ ],
1071
+ "scopes": []
1072
+ },
1073
+ "examples": {
1074
+ "groups": []
1075
+ },
1076
+ "definitions": []
1077
+ }
1078
+ ]