@xyd-js/gql 0.1.0-xyd.8 → 0.1.0-xyd.96

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