graphql-codegen-plugin-typescript-swr 0.8.5 → 0.9.0

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 (115) hide show
  1. package/README.md +5 -0
  2. package/build/main/visitor.js +2 -2
  3. package/build/module/visitor.js +2 -2
  4. package/package.json +8 -5
  5. package/.editorconfig +0 -13
  6. package/.eslintrc.js +0 -63
  7. package/.github/CONTRIBUTING.md +0 -3
  8. package/.github/ISSUE_TEMPLATE.md +0 -9
  9. package/.github/PULL_REQUEST_TEMPLATE.md +0 -7
  10. package/.github/workflows/main.yml +0 -28
  11. package/.gitignore +0 -8
  12. package/.prettierignore +0 -3
  13. package/.prettierrc.json +0 -4
  14. package/.vscode/extensions.json +0 -8
  15. package/.vscode/launch.json +0 -29
  16. package/.vscode/settings.json +0 -41
  17. package/build/tsconfig.main.tsbuildinfo +0 -1
  18. package/build/tsconfig.module.tsbuildinfo +0 -1
  19. package/dev-test/.env +0 -1
  20. package/dev-test/codegen.yml +0 -357
  21. package/dev-test/githunt/__generated__/comment-added.subscription.stencil-component.tsx +0 -47
  22. package/dev-test/githunt/__generated__/comment.query.stencil-component.tsx +0 -68
  23. package/dev-test/githunt/__generated__/comments-page-comment.fragment.stencil-component.tsx +0 -20
  24. package/dev-test/githunt/__generated__/current-user.query.stencil-component.tsx +0 -34
  25. package/dev-test/githunt/__generated__/feed-entry.fragment.stencil-component.tsx +0 -30
  26. package/dev-test/githunt/__generated__/feed.query.stencil-component.tsx +0 -40
  27. package/dev-test/githunt/__generated__/new-entry.mutation.stencil-component.tsx +0 -35
  28. package/dev-test/githunt/__generated__/repo-info.fragment.stencil-component.tsx +0 -26
  29. package/dev-test/githunt/__generated__/submit-comment.mutation.stencil-component.tsx +0 -35
  30. package/dev-test/githunt/__generated__/vote-buttons.fragment.stencil-component.tsx +0 -16
  31. package/dev-test/githunt/__generated__/vote.mutation.stencil-component.tsx +0 -41
  32. package/dev-test/githunt/comment-added.subscription.graphql +0 -11
  33. package/dev-test/githunt/comment.query.graphql +0 -33
  34. package/dev-test/githunt/comments-page-comment.fragment.graphql +0 -9
  35. package/dev-test/githunt/current-user.query.graphql +0 -6
  36. package/dev-test/githunt/feed-entry.fragment.graphql +0 -13
  37. package/dev-test/githunt/feed.query.graphql +0 -8
  38. package/dev-test/githunt/flow.flow.js +0 -367
  39. package/dev-test/githunt/graphql-declared-modules.d.ts +0 -87
  40. package/dev-test/githunt/new-entry.mutation.graphql +0 -5
  41. package/dev-test/githunt/repo-info.fragment.graphql +0 -12
  42. package/dev-test/githunt/schema.js +0 -3
  43. package/dev-test/githunt/schema.json +0 -1750
  44. package/dev-test/githunt/submit-comment.mutation.graphql +0 -5
  45. package/dev-test/githunt/typed-document-nodes.ts +0 -892
  46. package/dev-test/githunt/types.apolloAngular.sdk.ts +0 -570
  47. package/dev-test/githunt/types.apolloAngular.ts +0 -491
  48. package/dev-test/githunt/types.avoidOptionals.ts +0 -266
  49. package/dev-test/githunt/types.d.ts +0 -261
  50. package/dev-test/githunt/types.enumsAsTypes.ts +0 -261
  51. package/dev-test/githunt/types.flatten.preResolveTypes.ts +0 -289
  52. package/dev-test/githunt/types.immutableTypes.ts +0 -267
  53. package/dev-test/githunt/types.preResolveTypes.compatibility.ts +0 -368
  54. package/dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts +0 -156
  55. package/dev-test/githunt/types.preResolveTypes.ts +0 -293
  56. package/dev-test/githunt/types.reactApollo.customSuffix.tsx +0 -634
  57. package/dev-test/githunt/types.reactApollo.hooks.tsx +0 -621
  58. package/dev-test/githunt/types.reactApollo.preResolveTypes.tsx +0 -648
  59. package/dev-test/githunt/types.reactApollo.tsx +0 -621
  60. package/dev-test/githunt/types.reactApollo.v2.tsx +0 -635
  61. package/dev-test/githunt/types.stencilApollo.tsx +0 -484
  62. package/dev-test/githunt/types.ts +0 -266
  63. package/dev-test/githunt/types.urql.tsx +0 -444
  64. package/dev-test/githunt/types.vueApollo.ts +0 -647
  65. package/dev-test/githunt/vote-buttons.fragment.graphql +0 -6
  66. package/dev-test/githunt/vote.mutation.graphql +0 -9
  67. package/dev-test/setup.js +0 -3
  68. package/dev-test/test-message/documents.ts +0 -46
  69. package/dev-test/test-message/schema.graphql +0 -23
  70. package/dev-test/test-message/types.tsx +0 -237
  71. package/dev-test/test-schema/env.types.ts +0 -35
  72. package/dev-test/test-schema/flow-types.flow.js +0 -139
  73. package/dev-test/test-schema/local/schema-ast.js +0 -2
  74. package/dev-test/test-schema/local/schema-formats.js +0 -20
  75. package/dev-test/test-schema/local/schema-object.js +0 -2
  76. package/dev-test/test-schema/local/schema-text.js +0 -2
  77. package/dev-test/test-schema/local/schema.graphql +0 -8
  78. package/dev-test/test-schema/resolvers-federation.ts +0 -233
  79. package/dev-test/test-schema/resolvers-root.ts +0 -178
  80. package/dev-test/test-schema/resolvers-types.ts +0 -168
  81. package/dev-test/test-schema/schema-ast.js +0 -2
  82. package/dev-test/test-schema/schema-federation.graphql +0 -30
  83. package/dev-test/test-schema/schema-formats.js +0 -38
  84. package/dev-test/test-schema/schema-json.js +0 -2
  85. package/dev-test/test-schema/schema-object.js +0 -2
  86. package/dev-test/test-schema/schema-text.js +0 -2
  87. package/dev-test/test-schema/schema-with-imports.graphql +0 -9
  88. package/dev-test/test-schema/schema-with-root.graphql +0 -22
  89. package/dev-test/test-schema/schema.graphql +0 -19
  90. package/dev-test/test-schema/schema.json +0 -1070
  91. package/dev-test/test-schema/types.preResolveTypes.onlyOperationTypes.ts +0 -19
  92. package/dev-test/test-schema/types.preResolveTypes.ts +0 -44
  93. package/dev-test/test-schema/typings.avoidOptionals.ts +0 -27
  94. package/dev-test/test-schema/typings.enum.ts +0 -19
  95. package/dev-test/test-schema/typings.immutableTypes.ts +0 -27
  96. package/dev-test/test-schema/typings.ts +0 -156
  97. package/dev-test/test-schema/typings.wrapped.ts +0 -29
  98. package/dev-test/tsconfig.json +0 -18
  99. package/jest.config.js +0 -30
  100. package/renovate.json +0 -2
  101. package/src/config.ts +0 -29
  102. package/src/index.ts +0 -54
  103. package/src/visitor.ts +0 -259
  104. package/tests/outputs/autogenSWRKey.ts +0 -46
  105. package/tests/outputs/excludeQueries.ts +0 -13
  106. package/tests/outputs/infinite.ts +0 -49
  107. package/tests/outputs/mutations.ts +0 -19
  108. package/tests/outputs/rawRequest.ts +0 -19
  109. package/tests/outputs/straight.ts +0 -19
  110. package/tests/swr.spec.ts +0 -306
  111. package/tests/visitor.spec.ts +0 -19
  112. package/tsconfig.json +0 -32
  113. package/tsconfig.main.json +0 -11
  114. package/tsconfig.module.json +0 -13
  115. package/yarn.lock +0 -5359
@@ -1,1070 +0,0 @@
1
- {
2
- "data": {
3
- "__schema": {
4
- "queryType": {
5
- "name": "Query"
6
- },
7
- "mutationType": null,
8
- "subscriptionType": null,
9
- "types": [
10
- {
11
- "kind": "OBJECT",
12
- "name": "Query",
13
- "description": "",
14
- "fields": [
15
- {
16
- "name": "allUsers",
17
- "description": "",
18
- "args": [],
19
- "type": {
20
- "kind": "NON_NULL",
21
- "name": null,
22
- "ofType": {
23
- "kind": "LIST",
24
- "name": null,
25
- "ofType": {
26
- "kind": "OBJECT",
27
- "name": "User",
28
- "ofType": null
29
- }
30
- }
31
- },
32
- "isDeprecated": false,
33
- "deprecationReason": null
34
- },
35
- {
36
- "name": "userById",
37
- "description": "",
38
- "args": [
39
- {
40
- "name": "id",
41
- "description": "",
42
- "type": {
43
- "kind": "NON_NULL",
44
- "name": null,
45
- "ofType": {
46
- "kind": "SCALAR",
47
- "name": "Int",
48
- "ofType": null
49
- }
50
- },
51
- "defaultValue": null
52
- }
53
- ],
54
- "type": {
55
- "kind": "OBJECT",
56
- "name": "User",
57
- "ofType": null
58
- },
59
- "isDeprecated": false,
60
- "deprecationReason": null
61
- }
62
- ],
63
- "inputFields": null,
64
- "interfaces": [],
65
- "enumValues": null,
66
- "possibleTypes": null
67
- },
68
- {
69
- "kind": "OBJECT",
70
- "name": "User",
71
- "description": "",
72
- "fields": [
73
- {
74
- "name": "id",
75
- "description": "",
76
- "args": [],
77
- "type": {
78
- "kind": "NON_NULL",
79
- "name": null,
80
- "ofType": {
81
- "kind": "SCALAR",
82
- "name": "Int",
83
- "ofType": null
84
- }
85
- },
86
- "isDeprecated": false,
87
- "deprecationReason": null
88
- },
89
- {
90
- "name": "name",
91
- "description": "",
92
- "args": [],
93
- "type": {
94
- "kind": "NON_NULL",
95
- "name": null,
96
- "ofType": {
97
- "kind": "SCALAR",
98
- "name": "String",
99
- "ofType": null
100
- }
101
- },
102
- "isDeprecated": false,
103
- "deprecationReason": null
104
- },
105
- {
106
- "name": "email",
107
- "description": "",
108
- "args": [],
109
- "type": {
110
- "kind": "NON_NULL",
111
- "name": null,
112
- "ofType": {
113
- "kind": "SCALAR",
114
- "name": "String",
115
- "ofType": null
116
- }
117
- },
118
- "isDeprecated": false,
119
- "deprecationReason": null
120
- }
121
- ],
122
- "inputFields": null,
123
- "interfaces": [],
124
- "enumValues": null,
125
- "possibleTypes": null
126
- },
127
- {
128
- "kind": "SCALAR",
129
- "name": "Int",
130
- "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",
131
- "fields": null,
132
- "inputFields": null,
133
- "interfaces": null,
134
- "enumValues": null,
135
- "possibleTypes": null
136
- },
137
- {
138
- "kind": "SCALAR",
139
- "name": "String",
140
- "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
141
- "fields": null,
142
- "inputFields": null,
143
- "interfaces": null,
144
- "enumValues": null,
145
- "possibleTypes": null
146
- },
147
- {
148
- "kind": "OBJECT",
149
- "name": "__Schema",
150
- "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",
151
- "fields": [
152
- {
153
- "name": "types",
154
- "description": "A list of all types supported by this server.",
155
- "args": [],
156
- "type": {
157
- "kind": "NON_NULL",
158
- "name": null,
159
- "ofType": {
160
- "kind": "LIST",
161
- "name": null,
162
- "ofType": {
163
- "kind": "NON_NULL",
164
- "name": null,
165
- "ofType": {
166
- "kind": "OBJECT",
167
- "name": "__Type",
168
- "ofType": null
169
- }
170
- }
171
- }
172
- },
173
- "isDeprecated": false,
174
- "deprecationReason": null
175
- },
176
- {
177
- "name": "queryType",
178
- "description": "The type that query operations will be rooted at.",
179
- "args": [],
180
- "type": {
181
- "kind": "NON_NULL",
182
- "name": null,
183
- "ofType": {
184
- "kind": "OBJECT",
185
- "name": "__Type",
186
- "ofType": null
187
- }
188
- },
189
- "isDeprecated": false,
190
- "deprecationReason": null
191
- },
192
- {
193
- "name": "mutationType",
194
- "description": "If this server supports mutation, the type that mutation operations will be rooted at.",
195
- "args": [],
196
- "type": {
197
- "kind": "OBJECT",
198
- "name": "__Type",
199
- "ofType": null
200
- },
201
- "isDeprecated": false,
202
- "deprecationReason": null
203
- },
204
- {
205
- "name": "subscriptionType",
206
- "description": "If this server support subscription, the type that subscription operations will be rooted at.",
207
- "args": [],
208
- "type": {
209
- "kind": "OBJECT",
210
- "name": "__Type",
211
- "ofType": null
212
- },
213
- "isDeprecated": false,
214
- "deprecationReason": null
215
- },
216
- {
217
- "name": "directives",
218
- "description": "A list of all directives supported by this server.",
219
- "args": [],
220
- "type": {
221
- "kind": "NON_NULL",
222
- "name": null,
223
- "ofType": {
224
- "kind": "LIST",
225
- "name": null,
226
- "ofType": {
227
- "kind": "NON_NULL",
228
- "name": null,
229
- "ofType": {
230
- "kind": "OBJECT",
231
- "name": "__Directive",
232
- "ofType": null
233
- }
234
- }
235
- }
236
- },
237
- "isDeprecated": false,
238
- "deprecationReason": null
239
- }
240
- ],
241
- "inputFields": null,
242
- "interfaces": [],
243
- "enumValues": null,
244
- "possibleTypes": null
245
- },
246
- {
247
- "kind": "OBJECT",
248
- "name": "__Type",
249
- "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",
250
- "fields": [
251
- {
252
- "name": "kind",
253
- "description": null,
254
- "args": [],
255
- "type": {
256
- "kind": "NON_NULL",
257
- "name": null,
258
- "ofType": {
259
- "kind": "ENUM",
260
- "name": "__TypeKind",
261
- "ofType": null
262
- }
263
- },
264
- "isDeprecated": false,
265
- "deprecationReason": null
266
- },
267
- {
268
- "name": "name",
269
- "description": null,
270
- "args": [],
271
- "type": {
272
- "kind": "SCALAR",
273
- "name": "String",
274
- "ofType": null
275
- },
276
- "isDeprecated": false,
277
- "deprecationReason": null
278
- },
279
- {
280
- "name": "description",
281
- "description": null,
282
- "args": [],
283
- "type": {
284
- "kind": "SCALAR",
285
- "name": "String",
286
- "ofType": null
287
- },
288
- "isDeprecated": false,
289
- "deprecationReason": null
290
- },
291
- {
292
- "name": "fields",
293
- "description": null,
294
- "args": [
295
- {
296
- "name": "includeDeprecated",
297
- "description": null,
298
- "type": {
299
- "kind": "SCALAR",
300
- "name": "Boolean",
301
- "ofType": null
302
- },
303
- "defaultValue": "false"
304
- }
305
- ],
306
- "type": {
307
- "kind": "LIST",
308
- "name": null,
309
- "ofType": {
310
- "kind": "NON_NULL",
311
- "name": null,
312
- "ofType": {
313
- "kind": "OBJECT",
314
- "name": "__Field",
315
- "ofType": null
316
- }
317
- }
318
- },
319
- "isDeprecated": false,
320
- "deprecationReason": null
321
- },
322
- {
323
- "name": "interfaces",
324
- "description": null,
325
- "args": [],
326
- "type": {
327
- "kind": "LIST",
328
- "name": null,
329
- "ofType": {
330
- "kind": "NON_NULL",
331
- "name": null,
332
- "ofType": {
333
- "kind": "OBJECT",
334
- "name": "__Type",
335
- "ofType": null
336
- }
337
- }
338
- },
339
- "isDeprecated": false,
340
- "deprecationReason": null
341
- },
342
- {
343
- "name": "possibleTypes",
344
- "description": null,
345
- "args": [],
346
- "type": {
347
- "kind": "LIST",
348
- "name": null,
349
- "ofType": {
350
- "kind": "NON_NULL",
351
- "name": null,
352
- "ofType": {
353
- "kind": "OBJECT",
354
- "name": "__Type",
355
- "ofType": null
356
- }
357
- }
358
- },
359
- "isDeprecated": false,
360
- "deprecationReason": null
361
- },
362
- {
363
- "name": "enumValues",
364
- "description": null,
365
- "args": [
366
- {
367
- "name": "includeDeprecated",
368
- "description": null,
369
- "type": {
370
- "kind": "SCALAR",
371
- "name": "Boolean",
372
- "ofType": null
373
- },
374
- "defaultValue": "false"
375
- }
376
- ],
377
- "type": {
378
- "kind": "LIST",
379
- "name": null,
380
- "ofType": {
381
- "kind": "NON_NULL",
382
- "name": null,
383
- "ofType": {
384
- "kind": "OBJECT",
385
- "name": "__EnumValue",
386
- "ofType": null
387
- }
388
- }
389
- },
390
- "isDeprecated": false,
391
- "deprecationReason": null
392
- },
393
- {
394
- "name": "inputFields",
395
- "description": null,
396
- "args": [],
397
- "type": {
398
- "kind": "LIST",
399
- "name": null,
400
- "ofType": {
401
- "kind": "NON_NULL",
402
- "name": null,
403
- "ofType": {
404
- "kind": "OBJECT",
405
- "name": "__InputValue",
406
- "ofType": null
407
- }
408
- }
409
- },
410
- "isDeprecated": false,
411
- "deprecationReason": null
412
- },
413
- {
414
- "name": "ofType",
415
- "description": null,
416
- "args": [],
417
- "type": {
418
- "kind": "OBJECT",
419
- "name": "__Type",
420
- "ofType": null
421
- },
422
- "isDeprecated": false,
423
- "deprecationReason": null
424
- }
425
- ],
426
- "inputFields": null,
427
- "interfaces": [],
428
- "enumValues": null,
429
- "possibleTypes": null
430
- },
431
- {
432
- "kind": "ENUM",
433
- "name": "__TypeKind",
434
- "description": "An enum describing what kind of type a given `__Type` is.",
435
- "fields": null,
436
- "inputFields": null,
437
- "interfaces": null,
438
- "enumValues": [
439
- {
440
- "name": "SCALAR",
441
- "description": "Indicates this type is a scalar.",
442
- "isDeprecated": false,
443
- "deprecationReason": null
444
- },
445
- {
446
- "name": "OBJECT",
447
- "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.",
448
- "isDeprecated": false,
449
- "deprecationReason": null
450
- },
451
- {
452
- "name": "INTERFACE",
453
- "description": "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.",
454
- "isDeprecated": false,
455
- "deprecationReason": null
456
- },
457
- {
458
- "name": "UNION",
459
- "description": "Indicates this type is a union. `possibleTypes` is a valid field.",
460
- "isDeprecated": false,
461
- "deprecationReason": null
462
- },
463
- {
464
- "name": "ENUM",
465
- "description": "Indicates this type is an enum. `enumValues` is a valid field.",
466
- "isDeprecated": false,
467
- "deprecationReason": null
468
- },
469
- {
470
- "name": "INPUT_OBJECT",
471
- "description": "Indicates this type is an input object. `inputFields` is a valid field.",
472
- "isDeprecated": false,
473
- "deprecationReason": null
474
- },
475
- {
476
- "name": "LIST",
477
- "description": "Indicates this type is a list. `ofType` is a valid field.",
478
- "isDeprecated": false,
479
- "deprecationReason": null
480
- },
481
- {
482
- "name": "NON_NULL",
483
- "description": "Indicates this type is a non-null. `ofType` is a valid field.",
484
- "isDeprecated": false,
485
- "deprecationReason": null
486
- }
487
- ],
488
- "possibleTypes": null
489
- },
490
- {
491
- "kind": "SCALAR",
492
- "name": "Boolean",
493
- "description": "The `Boolean` scalar type represents `true` or `false`.",
494
- "fields": null,
495
- "inputFields": null,
496
- "interfaces": null,
497
- "enumValues": null,
498
- "possibleTypes": null
499
- },
500
- {
501
- "kind": "OBJECT",
502
- "name": "__Field",
503
- "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",
504
- "fields": [
505
- {
506
- "name": "name",
507
- "description": null,
508
- "args": [],
509
- "type": {
510
- "kind": "NON_NULL",
511
- "name": null,
512
- "ofType": {
513
- "kind": "SCALAR",
514
- "name": "String",
515
- "ofType": null
516
- }
517
- },
518
- "isDeprecated": false,
519
- "deprecationReason": null
520
- },
521
- {
522
- "name": "description",
523
- "description": null,
524
- "args": [],
525
- "type": {
526
- "kind": "SCALAR",
527
- "name": "String",
528
- "ofType": null
529
- },
530
- "isDeprecated": false,
531
- "deprecationReason": null
532
- },
533
- {
534
- "name": "args",
535
- "description": null,
536
- "args": [],
537
- "type": {
538
- "kind": "NON_NULL",
539
- "name": null,
540
- "ofType": {
541
- "kind": "LIST",
542
- "name": null,
543
- "ofType": {
544
- "kind": "NON_NULL",
545
- "name": null,
546
- "ofType": {
547
- "kind": "OBJECT",
548
- "name": "__InputValue",
549
- "ofType": null
550
- }
551
- }
552
- }
553
- },
554
- "isDeprecated": false,
555
- "deprecationReason": null
556
- },
557
- {
558
- "name": "type",
559
- "description": null,
560
- "args": [],
561
- "type": {
562
- "kind": "NON_NULL",
563
- "name": null,
564
- "ofType": {
565
- "kind": "OBJECT",
566
- "name": "__Type",
567
- "ofType": null
568
- }
569
- },
570
- "isDeprecated": false,
571
- "deprecationReason": null
572
- },
573
- {
574
- "name": "isDeprecated",
575
- "description": null,
576
- "args": [],
577
- "type": {
578
- "kind": "NON_NULL",
579
- "name": null,
580
- "ofType": {
581
- "kind": "SCALAR",
582
- "name": "Boolean",
583
- "ofType": null
584
- }
585
- },
586
- "isDeprecated": false,
587
- "deprecationReason": null
588
- },
589
- {
590
- "name": "deprecationReason",
591
- "description": null,
592
- "args": [],
593
- "type": {
594
- "kind": "SCALAR",
595
- "name": "String",
596
- "ofType": null
597
- },
598
- "isDeprecated": false,
599
- "deprecationReason": null
600
- }
601
- ],
602
- "inputFields": null,
603
- "interfaces": [],
604
- "enumValues": null,
605
- "possibleTypes": null
606
- },
607
- {
608
- "kind": "OBJECT",
609
- "name": "__InputValue",
610
- "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",
611
- "fields": [
612
- {
613
- "name": "name",
614
- "description": null,
615
- "args": [],
616
- "type": {
617
- "kind": "NON_NULL",
618
- "name": null,
619
- "ofType": {
620
- "kind": "SCALAR",
621
- "name": "String",
622
- "ofType": null
623
- }
624
- },
625
- "isDeprecated": false,
626
- "deprecationReason": null
627
- },
628
- {
629
- "name": "description",
630
- "description": null,
631
- "args": [],
632
- "type": {
633
- "kind": "SCALAR",
634
- "name": "String",
635
- "ofType": null
636
- },
637
- "isDeprecated": false,
638
- "deprecationReason": null
639
- },
640
- {
641
- "name": "type",
642
- "description": null,
643
- "args": [],
644
- "type": {
645
- "kind": "NON_NULL",
646
- "name": null,
647
- "ofType": {
648
- "kind": "OBJECT",
649
- "name": "__Type",
650
- "ofType": null
651
- }
652
- },
653
- "isDeprecated": false,
654
- "deprecationReason": null
655
- },
656
- {
657
- "name": "defaultValue",
658
- "description": "A GraphQL-formatted string representing the default value for this input value.",
659
- "args": [],
660
- "type": {
661
- "kind": "SCALAR",
662
- "name": "String",
663
- "ofType": null
664
- },
665
- "isDeprecated": false,
666
- "deprecationReason": null
667
- }
668
- ],
669
- "inputFields": null,
670
- "interfaces": [],
671
- "enumValues": null,
672
- "possibleTypes": null
673
- },
674
- {
675
- "kind": "OBJECT",
676
- "name": "__EnumValue",
677
- "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",
678
- "fields": [
679
- {
680
- "name": "name",
681
- "description": null,
682
- "args": [],
683
- "type": {
684
- "kind": "NON_NULL",
685
- "name": null,
686
- "ofType": {
687
- "kind": "SCALAR",
688
- "name": "String",
689
- "ofType": null
690
- }
691
- },
692
- "isDeprecated": false,
693
- "deprecationReason": null
694
- },
695
- {
696
- "name": "description",
697
- "description": null,
698
- "args": [],
699
- "type": {
700
- "kind": "SCALAR",
701
- "name": "String",
702
- "ofType": null
703
- },
704
- "isDeprecated": false,
705
- "deprecationReason": null
706
- },
707
- {
708
- "name": "isDeprecated",
709
- "description": null,
710
- "args": [],
711
- "type": {
712
- "kind": "NON_NULL",
713
- "name": null,
714
- "ofType": {
715
- "kind": "SCALAR",
716
- "name": "Boolean",
717
- "ofType": null
718
- }
719
- },
720
- "isDeprecated": false,
721
- "deprecationReason": null
722
- },
723
- {
724
- "name": "deprecationReason",
725
- "description": null,
726
- "args": [],
727
- "type": {
728
- "kind": "SCALAR",
729
- "name": "String",
730
- "ofType": null
731
- },
732
- "isDeprecated": false,
733
- "deprecationReason": null
734
- }
735
- ],
736
- "inputFields": null,
737
- "interfaces": [],
738
- "enumValues": null,
739
- "possibleTypes": null
740
- },
741
- {
742
- "kind": "OBJECT",
743
- "name": "__Directive",
744
- "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
745
- "fields": [
746
- {
747
- "name": "name",
748
- "description": null,
749
- "args": [],
750
- "type": {
751
- "kind": "NON_NULL",
752
- "name": null,
753
- "ofType": {
754
- "kind": "SCALAR",
755
- "name": "String",
756
- "ofType": null
757
- }
758
- },
759
- "isDeprecated": false,
760
- "deprecationReason": null
761
- },
762
- {
763
- "name": "description",
764
- "description": null,
765
- "args": [],
766
- "type": {
767
- "kind": "SCALAR",
768
- "name": "String",
769
- "ofType": null
770
- },
771
- "isDeprecated": false,
772
- "deprecationReason": null
773
- },
774
- {
775
- "name": "locations",
776
- "description": null,
777
- "args": [],
778
- "type": {
779
- "kind": "NON_NULL",
780
- "name": null,
781
- "ofType": {
782
- "kind": "LIST",
783
- "name": null,
784
- "ofType": {
785
- "kind": "NON_NULL",
786
- "name": null,
787
- "ofType": {
788
- "kind": "ENUM",
789
- "name": "__DirectiveLocation",
790
- "ofType": null
791
- }
792
- }
793
- }
794
- },
795
- "isDeprecated": false,
796
- "deprecationReason": null
797
- },
798
- {
799
- "name": "args",
800
- "description": null,
801
- "args": [],
802
- "type": {
803
- "kind": "NON_NULL",
804
- "name": null,
805
- "ofType": {
806
- "kind": "LIST",
807
- "name": null,
808
- "ofType": {
809
- "kind": "NON_NULL",
810
- "name": null,
811
- "ofType": {
812
- "kind": "OBJECT",
813
- "name": "__InputValue",
814
- "ofType": null
815
- }
816
- }
817
- }
818
- },
819
- "isDeprecated": false,
820
- "deprecationReason": null
821
- },
822
- {
823
- "name": "onOperation",
824
- "description": null,
825
- "args": [],
826
- "type": {
827
- "kind": "NON_NULL",
828
- "name": null,
829
- "ofType": {
830
- "kind": "SCALAR",
831
- "name": "Boolean",
832
- "ofType": null
833
- }
834
- },
835
- "isDeprecated": true,
836
- "deprecationReason": "Use `locations`."
837
- },
838
- {
839
- "name": "onFragment",
840
- "description": null,
841
- "args": [],
842
- "type": {
843
- "kind": "NON_NULL",
844
- "name": null,
845
- "ofType": {
846
- "kind": "SCALAR",
847
- "name": "Boolean",
848
- "ofType": null
849
- }
850
- },
851
- "isDeprecated": true,
852
- "deprecationReason": "Use `locations`."
853
- },
854
- {
855
- "name": "onField",
856
- "description": null,
857
- "args": [],
858
- "type": {
859
- "kind": "NON_NULL",
860
- "name": null,
861
- "ofType": {
862
- "kind": "SCALAR",
863
- "name": "Boolean",
864
- "ofType": null
865
- }
866
- },
867
- "isDeprecated": true,
868
- "deprecationReason": "Use `locations`."
869
- }
870
- ],
871
- "inputFields": null,
872
- "interfaces": [],
873
- "enumValues": null,
874
- "possibleTypes": null
875
- },
876
- {
877
- "kind": "ENUM",
878
- "name": "__DirectiveLocation",
879
- "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",
880
- "fields": null,
881
- "inputFields": null,
882
- "interfaces": null,
883
- "enumValues": [
884
- {
885
- "name": "QUERY",
886
- "description": "Location adjacent to a query operation.",
887
- "isDeprecated": false,
888
- "deprecationReason": null
889
- },
890
- {
891
- "name": "MUTATION",
892
- "description": "Location adjacent to a mutation operation.",
893
- "isDeprecated": false,
894
- "deprecationReason": null
895
- },
896
- {
897
- "name": "SUBSCRIPTION",
898
- "description": "Location adjacent to a subscription operation.",
899
- "isDeprecated": false,
900
- "deprecationReason": null
901
- },
902
- {
903
- "name": "FIELD",
904
- "description": "Location adjacent to a field.",
905
- "isDeprecated": false,
906
- "deprecationReason": null
907
- },
908
- {
909
- "name": "FRAGMENT_DEFINITION",
910
- "description": "Location adjacent to a fragment definition.",
911
- "isDeprecated": false,
912
- "deprecationReason": null
913
- },
914
- {
915
- "name": "FRAGMENT_SPREAD",
916
- "description": "Location adjacent to a fragment spread.",
917
- "isDeprecated": false,
918
- "deprecationReason": null
919
- },
920
- {
921
- "name": "INLINE_FRAGMENT",
922
- "description": "Location adjacent to an inline fragment.",
923
- "isDeprecated": false,
924
- "deprecationReason": null
925
- },
926
- {
927
- "name": "SCHEMA",
928
- "description": "Location adjacent to a schema definition.",
929
- "isDeprecated": false,
930
- "deprecationReason": null
931
- },
932
- {
933
- "name": "SCALAR",
934
- "description": "Location adjacent to a scalar definition.",
935
- "isDeprecated": false,
936
- "deprecationReason": null
937
- },
938
- {
939
- "name": "OBJECT",
940
- "description": "Location adjacent to an object type definition.",
941
- "isDeprecated": false,
942
- "deprecationReason": null
943
- },
944
- {
945
- "name": "FIELD_DEFINITION",
946
- "description": "Location adjacent to a field definition.",
947
- "isDeprecated": false,
948
- "deprecationReason": null
949
- },
950
- {
951
- "name": "ARGUMENT_DEFINITION",
952
- "description": "Location adjacent to an argument definition.",
953
- "isDeprecated": false,
954
- "deprecationReason": null
955
- },
956
- {
957
- "name": "INTERFACE",
958
- "description": "Location adjacent to an interface definition.",
959
- "isDeprecated": false,
960
- "deprecationReason": null
961
- },
962
- {
963
- "name": "UNION",
964
- "description": "Location adjacent to a union definition.",
965
- "isDeprecated": false,
966
- "deprecationReason": null
967
- },
968
- {
969
- "name": "ENUM",
970
- "description": "Location adjacent to an enum definition.",
971
- "isDeprecated": false,
972
- "deprecationReason": null
973
- },
974
- {
975
- "name": "ENUM_VALUE",
976
- "description": "Location adjacent to an enum value definition.",
977
- "isDeprecated": false,
978
- "deprecationReason": null
979
- },
980
- {
981
- "name": "INPUT_OBJECT",
982
- "description": "Location adjacent to an input object type definition.",
983
- "isDeprecated": false,
984
- "deprecationReason": null
985
- },
986
- {
987
- "name": "INPUT_FIELD_DEFINITION",
988
- "description": "Location adjacent to an input object field definition.",
989
- "isDeprecated": false,
990
- "deprecationReason": null
991
- }
992
- ],
993
- "possibleTypes": null
994
- }
995
- ],
996
- "directives": [
997
- {
998
- "name": "skip",
999
- "description": "Directs the executor to skip this field or fragment when the `if` argument is true.",
1000
- "locations": [
1001
- "FIELD",
1002
- "FRAGMENT_SPREAD",
1003
- "INLINE_FRAGMENT"
1004
- ],
1005
- "args": [
1006
- {
1007
- "name": "if",
1008
- "description": "Skipped when true.",
1009
- "type": {
1010
- "kind": "NON_NULL",
1011
- "name": null,
1012
- "ofType": {
1013
- "kind": "SCALAR",
1014
- "name": "Boolean",
1015
- "ofType": null
1016
- }
1017
- },
1018
- "defaultValue": null
1019
- }
1020
- ]
1021
- },
1022
- {
1023
- "name": "include",
1024
- "description": "Directs the executor to include this field or fragment only when the `if` argument is true.",
1025
- "locations": [
1026
- "FIELD",
1027
- "FRAGMENT_SPREAD",
1028
- "INLINE_FRAGMENT"
1029
- ],
1030
- "args": [
1031
- {
1032
- "name": "if",
1033
- "description": "Included when true.",
1034
- "type": {
1035
- "kind": "NON_NULL",
1036
- "name": null,
1037
- "ofType": {
1038
- "kind": "SCALAR",
1039
- "name": "Boolean",
1040
- "ofType": null
1041
- }
1042
- },
1043
- "defaultValue": null
1044
- }
1045
- ]
1046
- },
1047
- {
1048
- "name": "deprecated",
1049
- "description": "Marks an element of a GraphQL schema as no longer supported.",
1050
- "locations": [
1051
- "FIELD_DEFINITION",
1052
- "ENUM_VALUE"
1053
- ],
1054
- "args": [
1055
- {
1056
- "name": "reason",
1057
- "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).",
1058
- "type": {
1059
- "kind": "SCALAR",
1060
- "name": "String",
1061
- "ofType": null
1062
- },
1063
- "defaultValue": "\"No longer supported\""
1064
- }
1065
- ]
1066
- }
1067
- ]
1068
- }
1069
- }
1070
- }