Skip to content

Commit 7a34c37

Browse files
authored
Merge pull request #740 from graph-gophers/add-missing-isdeprecated
fix: missing isDeprecated
2 parents 07b839b + 27b9780 commit 7a34c37

3 files changed

Lines changed: 45 additions & 0 deletions

File tree

example/social/introspect.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"defaultValue": "\"No longer supported\"",
88
"deprecationReason": null,
99
"description": "Explains why this element was deprecated, usually also including a suggestion\nfor how to access supported similar data. Formatted in\n[Markdown](https://daringfireball.net/projects/markdown/).",
10+
"isDeprecated": false,
1011
"name": "reason",
1112
"type": {
1213
"kind": "NON_NULL",
@@ -34,6 +35,7 @@
3435
"defaultValue": null,
3536
"deprecationReason": null,
3637
"description": "Included when true.",
38+
"isDeprecated": false,
3739
"name": "if",
3840
"type": {
3941
"kind": "NON_NULL",
@@ -68,6 +70,7 @@
6870
"defaultValue": null,
6971
"deprecationReason": null,
7072
"description": "Skipped when true.",
73+
"isDeprecated": false,
7174
"name": "if",
7275
"type": {
7376
"kind": "NON_NULL",
@@ -94,6 +97,7 @@
9497
"defaultValue": null,
9598
"deprecationReason": null,
9699
"description": "The URL should point to a human-readable specification of the data format, serialization, and coercion rules.",
100+
"isDeprecated": false,
97101
"name": "url",
98102
"type": {
99103
"kind": "NON_NULL",
@@ -233,6 +237,7 @@
233237
"defaultValue": null,
234238
"deprecationReason": null,
235239
"description": null,
240+
"isDeprecated": false,
236241
"name": "first",
237242
"type": {
238243
"kind": "SCALAR",
@@ -244,6 +249,7 @@
244249
"defaultValue": null,
245250
"deprecationReason": null,
246251
"description": null,
252+
"isDeprecated": false,
247253
"name": "last",
248254
"type": {
249255
"kind": "SCALAR",
@@ -300,6 +306,7 @@
300306
"defaultValue": null,
301307
"deprecationReason": null,
302308
"description": null,
309+
"isDeprecated": false,
303310
"name": "id",
304311
"type": {
305312
"kind": "NON_NULL",
@@ -315,6 +322,7 @@
315322
"defaultValue": "ADMIN",
316323
"deprecationReason": null,
317324
"description": null,
325+
"isDeprecated": false,
318326
"name": "role",
319327
"type": {
320328
"kind": "ENUM",
@@ -343,6 +351,7 @@
343351
"defaultValue": null,
344352
"deprecationReason": null,
345353
"description": null,
354+
"isDeprecated": false,
346355
"name": "id",
347356
"type": {
348357
"kind": "NON_NULL",
@@ -375,6 +384,7 @@
375384
"defaultValue": null,
376385
"deprecationReason": null,
377386
"description": null,
387+
"isDeprecated": false,
378388
"name": "text",
379389
"type": {
380390
"kind": "NON_NULL",
@@ -581,6 +591,7 @@
581591
"defaultValue": null,
582592
"deprecationReason": null,
583593
"description": null,
594+
"isDeprecated": false,
584595
"name": "page",
585596
"type": {
586597
"kind": "INPUT_OBJECT",
@@ -699,6 +710,7 @@
699710
"defaultValue": "false",
700711
"deprecationReason": null,
701712
"description": null,
713+
"isDeprecated": false,
702714
"name": "includeDeprecated",
703715
"type": {
704716
"kind": "NON_NULL",
@@ -964,6 +976,7 @@
964976
"defaultValue": "false",
965977
"deprecationReason": null,
966978
"description": null,
979+
"isDeprecated": false,
967980
"name": "includeDeprecated",
968981
"type": {
969982
"kind": "NON_NULL",
@@ -1293,6 +1306,7 @@
12931306
"defaultValue": "false",
12941307
"deprecationReason": null,
12951308
"description": null,
1309+
"isDeprecated": false,
12961310
"name": "includeDeprecated",
12971311
"type": {
12981312
"kind": "NON_NULL",
@@ -1369,6 +1383,7 @@
13691383
"defaultValue": "false",
13701384
"deprecationReason": null,
13711385
"description": null,
1386+
"isDeprecated": false,
13721387
"name": "includeDeprecated",
13731388
"type": {
13741389
"kind": "NON_NULL",
@@ -1405,6 +1420,7 @@
14051420
"defaultValue": "false",
14061421
"deprecationReason": null,
14071422
"description": null,
1423+
"isDeprecated": false,
14081424
"name": "includeDeprecated",
14091425
"type": {
14101426
"kind": "NON_NULL",

example/starwars/introspect.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"defaultValue": "\"No longer supported\"",
88
"deprecationReason": null,
99
"description": "Explains why this element was deprecated, usually also including a suggestion\nfor how to access supported similar data. Formatted in\n[Markdown](https://daringfireball.net/projects/markdown/).",
10+
"isDeprecated": false,
1011
"name": "reason",
1112
"type": {
1213
"kind": "NON_NULL",
@@ -34,6 +35,7 @@
3435
"defaultValue": null,
3536
"deprecationReason": null,
3637
"description": "Included when true.",
38+
"isDeprecated": false,
3739
"name": "if",
3840
"type": {
3941
"kind": "NON_NULL",
@@ -68,6 +70,7 @@
6870
"defaultValue": null,
6971
"deprecationReason": null,
7072
"description": "Skipped when true.",
73+
"isDeprecated": false,
7174
"name": "if",
7275
"type": {
7376
"kind": "NON_NULL",
@@ -94,6 +97,7 @@
9497
"defaultValue": null,
9598
"deprecationReason": null,
9699
"description": "The URL should point to a human-readable specification of the data format, serialization, and coercion rules.",
100+
"isDeprecated": false,
97101
"name": "url",
98102
"type": {
99103
"kind": "NON_NULL",
@@ -189,6 +193,7 @@
189193
"defaultValue": null,
190194
"deprecationReason": null,
191195
"description": null,
196+
"isDeprecated": false,
192197
"name": "first",
193198
"type": {
194199
"kind": "SCALAR",
@@ -200,6 +205,7 @@
200205
"defaultValue": null,
201206
"deprecationReason": null,
202207
"description": null,
208+
"isDeprecated": false,
203209
"name": "after",
204210
"type": {
205211
"kind": "SCALAR",
@@ -322,6 +328,7 @@
322328
"defaultValue": null,
323329
"deprecationReason": null,
324330
"description": null,
331+
"isDeprecated": false,
325332
"name": "first",
326333
"type": {
327334
"kind": "SCALAR",
@@ -333,6 +340,7 @@
333340
"defaultValue": null,
334341
"deprecationReason": null,
335342
"description": null,
343+
"isDeprecated": false,
336344
"name": "after",
337345
"type": {
338346
"kind": "SCALAR",
@@ -599,6 +607,7 @@
599607
"defaultValue": "METER",
600608
"deprecationReason": null,
601609
"description": null,
610+
"isDeprecated": false,
602611
"name": "unit",
603612
"type": {
604613
"kind": "ENUM",
@@ -655,6 +664,7 @@
655664
"defaultValue": null,
656665
"deprecationReason": null,
657666
"description": null,
667+
"isDeprecated": false,
658668
"name": "first",
659669
"type": {
660670
"kind": "SCALAR",
@@ -666,6 +676,7 @@
666676
"defaultValue": null,
667677
"deprecationReason": null,
668678
"description": null,
679+
"isDeprecated": false,
669680
"name": "after",
670681
"type": {
671682
"kind": "SCALAR",
@@ -794,6 +805,7 @@
794805
"defaultValue": null,
795806
"deprecationReason": null,
796807
"description": null,
808+
"isDeprecated": false,
797809
"name": "episode",
798810
"type": {
799811
"kind": "NON_NULL",
@@ -809,6 +821,7 @@
809821
"defaultValue": null,
810822
"deprecationReason": null,
811823
"description": null,
824+
"isDeprecated": false,
812825
"name": "review",
813826
"type": {
814827
"kind": "NON_NULL",
@@ -899,6 +912,7 @@
899912
"defaultValue": "NEWHOPE",
900913
"deprecationReason": null,
901914
"description": null,
915+
"isDeprecated": false,
902916
"name": "episode",
903917
"type": {
904918
"kind": "ENUM",
@@ -923,6 +937,7 @@
923937
"defaultValue": null,
924938
"deprecationReason": null,
925939
"description": null,
940+
"isDeprecated": false,
926941
"name": "episode",
927942
"type": {
928943
"kind": "NON_NULL",
@@ -959,6 +974,7 @@
959974
"defaultValue": null,
960975
"deprecationReason": null,
961976
"description": null,
977+
"isDeprecated": false,
962978
"name": "text",
963979
"type": {
964980
"kind": "NON_NULL",
@@ -995,6 +1011,7 @@
9951011
"defaultValue": null,
9961012
"deprecationReason": null,
9971013
"description": null,
1014+
"isDeprecated": false,
9981015
"name": "id",
9991016
"type": {
10001017
"kind": "NON_NULL",
@@ -1023,6 +1040,7 @@
10231040
"defaultValue": null,
10241041
"deprecationReason": null,
10251042
"description": null,
1043+
"isDeprecated": false,
10261044
"name": "id",
10271045
"type": {
10281046
"kind": "NON_NULL",
@@ -1051,6 +1069,7 @@
10511069
"defaultValue": null,
10521070
"deprecationReason": null,
10531071
"description": null,
1072+
"isDeprecated": false,
10541073
"name": "id",
10551074
"type": {
10561075
"kind": "NON_NULL",
@@ -1079,6 +1098,7 @@
10791098
"defaultValue": null,
10801099
"deprecationReason": null,
10811100
"description": null,
1101+
"isDeprecated": false,
10821102
"name": "id",
10831103
"type": {
10841104
"kind": "NON_NULL",
@@ -1156,6 +1176,7 @@
11561176
"defaultValue": null,
11571177
"deprecationReason": null,
11581178
"description": "0-5 stars",
1179+
"isDeprecated": false,
11591180
"name": "stars",
11601181
"type": {
11611182
"kind": "NON_NULL",
@@ -1171,6 +1192,7 @@
11711192
"defaultValue": null,
11721193
"deprecationReason": null,
11731194
"description": "Comment about the movie, optional",
1195+
"isDeprecated": false,
11741196
"name": "commentary",
11751197
"type": {
11761198
"kind": "SCALAR",
@@ -1252,6 +1274,7 @@
12521274
"defaultValue": "METER",
12531275
"deprecationReason": null,
12541276
"description": null,
1277+
"isDeprecated": false,
12551278
"name": "unit",
12561279
"type": {
12571280
"kind": "ENUM",
@@ -1353,6 +1376,7 @@
13531376
"defaultValue": "false",
13541377
"deprecationReason": null,
13551378
"description": null,
1379+
"isDeprecated": false,
13561380
"name": "includeDeprecated",
13571381
"type": {
13581382
"kind": "NON_NULL",
@@ -1618,6 +1642,7 @@
16181642
"defaultValue": "false",
16191643
"deprecationReason": null,
16201644
"description": null,
1645+
"isDeprecated": false,
16211646
"name": "includeDeprecated",
16221647
"type": {
16231648
"kind": "NON_NULL",
@@ -1947,6 +1972,7 @@
19471972
"defaultValue": "false",
19481973
"deprecationReason": null,
19491974
"description": null,
1975+
"isDeprecated": false,
19501976
"name": "includeDeprecated",
19511977
"type": {
19521978
"kind": "NON_NULL",
@@ -2023,6 +2049,7 @@
20232049
"defaultValue": "false",
20242050
"deprecationReason": null,
20252051
"description": null,
2052+
"isDeprecated": false,
20262053
"name": "includeDeprecated",
20272054
"type": {
20282055
"kind": "NON_NULL",
@@ -2059,6 +2086,7 @@
20592086
"defaultValue": "false",
20602087
"deprecationReason": null,
20612088
"description": null,
2089+
"isDeprecated": false,
20622090
"name": "includeDeprecated",
20632091
"type": {
20642092
"kind": "NON_NULL",

introspection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ var introspectionQuery = `
8282
description
8383
type { ...TypeRef }
8484
defaultValue
85+
isDeprecated
8586
deprecationReason
8687
}
8788
fragment TypeRef on __Type {

0 commit comments

Comments
 (0)