Skip to content

Commit 12b6f08

Browse files
committed
Updated default schema to be based on latest graphql-js introspection result
1 parent 6a15bba commit 12b6f08

File tree

1 file changed

+209
-25
lines changed

1 file changed

+209
-25
lines changed

resources/META-INF/graphql.schema.json

Lines changed: 209 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"mutationType": {
99
"name": "Mutation"
1010
},
11+
"subscriptionType": null,
1112
"types": [
1213
{
1314
"kind": "OBJECT",
@@ -175,7 +176,7 @@
175176
{
176177
"kind": "SCALAR",
177178
"name": "Boolean",
178-
"description": null,
179+
"description": "The `Boolean` scalar type represents `true` or `false`.",
179180
"fields": null,
180181
"inputFields": null,
181182
"interfaces": null,
@@ -212,7 +213,7 @@
212213
{
213214
"kind": "OBJECT",
214215
"name": "__Schema",
215-
"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 and mutation operations.",
216+
"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.",
216217
"fields": [
217218
{
218219
"name": "types",
@@ -229,7 +230,8 @@
229230
"name": null,
230231
"ofType": {
231232
"kind": "OBJECT",
232-
"name": "__Type"
233+
"name": "__Type",
234+
"ofType": null
233235
}
234236
}
235237
}
@@ -265,6 +267,18 @@
265267
"isDeprecated": false,
266268
"deprecationReason": null
267269
},
270+
{
271+
"name": "subscriptionType",
272+
"description": "If this server support subscription, the type that subscription operations will be rooted at.",
273+
"args": [],
274+
"type": {
275+
"kind": "OBJECT",
276+
"name": "__Type",
277+
"ofType": null
278+
},
279+
"isDeprecated": false,
280+
"deprecationReason": null
281+
},
268282
{
269283
"name": "directives",
270284
"description": "A list of all directives supported by this server.",
@@ -280,7 +294,8 @@
280294
"name": null,
281295
"ofType": {
282296
"kind": "OBJECT",
283-
"name": "__Directive"
297+
"name": "__Directive",
298+
"ofType": null
284299
}
285300
}
286301
}
@@ -297,7 +312,7 @@
297312
{
298313
"kind": "OBJECT",
299314
"name": "__Type",
300-
"description": null,
315+
"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.",
301316
"fields": [
302317
{
303318
"name": "kind",
@@ -541,7 +556,7 @@
541556
{
542557
"kind": "OBJECT",
543558
"name": "__Field",
544-
"description": null,
559+
"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.",
545560
"fields": [
546561
{
547562
"name": "name",
@@ -586,7 +601,8 @@
586601
"name": null,
587602
"ofType": {
588603
"kind": "OBJECT",
589-
"name": "__InputValue"
604+
"name": "__InputValue",
605+
"ofType": null
590606
}
591607
}
592608
}
@@ -647,7 +663,7 @@
647663
{
648664
"kind": "OBJECT",
649665
"name": "__InputValue",
650-
"description": null,
666+
"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.",
651667
"fields": [
652668
{
653669
"name": "name",
@@ -695,7 +711,7 @@
695711
},
696712
{
697713
"name": "defaultValue",
698-
"description": null,
714+
"description": "A GraphQL-formatted string representing the default value for this input value.",
699715
"args": [],
700716
"type": {
701717
"kind": "SCALAR",
@@ -714,7 +730,7 @@
714730
{
715731
"kind": "OBJECT",
716732
"name": "__EnumValue",
717-
"description": null,
733+
"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.",
718734
"fields": [
719735
{
720736
"name": "name",
@@ -781,7 +797,7 @@
781797
{
782798
"kind": "OBJECT",
783799
"name": "__Directive",
784-
"description": null,
800+
"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.",
785801
"fields": [
786802
{
787803
"name": "name",
@@ -811,6 +827,30 @@
811827
"isDeprecated": false,
812828
"deprecationReason": null
813829
},
830+
{
831+
"name": "locations",
832+
"description": null,
833+
"args": [],
834+
"type": {
835+
"kind": "NON_NULL",
836+
"name": null,
837+
"ofType": {
838+
"kind": "LIST",
839+
"name": null,
840+
"ofType": {
841+
"kind": "NON_NULL",
842+
"name": null,
843+
"ofType": {
844+
"kind": "ENUM",
845+
"name": "__DirectiveLocation",
846+
"ofType": null
847+
}
848+
}
849+
}
850+
},
851+
"isDeprecated": false,
852+
"deprecationReason": null
853+
},
814854
{
815855
"name": "args",
816856
"description": null,
@@ -826,7 +866,8 @@
826866
"name": null,
827867
"ofType": {
828868
"kind": "OBJECT",
829-
"name": "__InputValue"
869+
"name": "__InputValue",
870+
"ofType": null
830871
}
831872
}
832873
}
@@ -847,8 +888,8 @@
847888
"ofType": null
848889
}
849890
},
850-
"isDeprecated": false,
851-
"deprecationReason": null
891+
"isDeprecated": true,
892+
"deprecationReason": "Use `locations`."
852893
},
853894
{
854895
"name": "onFragment",
@@ -863,8 +904,8 @@
863904
"ofType": null
864905
}
865906
},
866-
"isDeprecated": false,
867-
"deprecationReason": null
907+
"isDeprecated": true,
908+
"deprecationReason": "Use `locations`."
868909
},
869910
{
870911
"name": "onField",
@@ -879,20 +920,144 @@
879920
"ofType": null
880921
}
881922
},
882-
"isDeprecated": false,
883-
"deprecationReason": null
923+
"isDeprecated": true,
924+
"deprecationReason": "Use `locations`."
884925
}
885926
],
886927
"inputFields": null,
887928
"interfaces": [],
888929
"enumValues": null,
889930
"possibleTypes": null
931+
},
932+
{
933+
"kind": "ENUM",
934+
"name": "__DirectiveLocation",
935+
"description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",
936+
"fields": null,
937+
"inputFields": null,
938+
"interfaces": null,
939+
"enumValues": [
940+
{
941+
"name": "QUERY",
942+
"description": "Location adjacent to a query operation.",
943+
"isDeprecated": false,
944+
"deprecationReason": null
945+
},
946+
{
947+
"name": "MUTATION",
948+
"description": "Location adjacent to a mutation operation.",
949+
"isDeprecated": false,
950+
"deprecationReason": null
951+
},
952+
{
953+
"name": "SUBSCRIPTION",
954+
"description": "Location adjacent to a subscription operation.",
955+
"isDeprecated": false,
956+
"deprecationReason": null
957+
},
958+
{
959+
"name": "FIELD",
960+
"description": "Location adjacent to a field.",
961+
"isDeprecated": false,
962+
"deprecationReason": null
963+
},
964+
{
965+
"name": "FRAGMENT_DEFINITION",
966+
"description": "Location adjacent to a fragment definition.",
967+
"isDeprecated": false,
968+
"deprecationReason": null
969+
},
970+
{
971+
"name": "FRAGMENT_SPREAD",
972+
"description": "Location adjacent to a fragment spread.",
973+
"isDeprecated": false,
974+
"deprecationReason": null
975+
},
976+
{
977+
"name": "INLINE_FRAGMENT",
978+
"description": "Location adjacent to an inline fragment.",
979+
"isDeprecated": false,
980+
"deprecationReason": null
981+
},
982+
{
983+
"name": "SCHEMA",
984+
"description": "Location adjacent to a schema definition.",
985+
"isDeprecated": false,
986+
"deprecationReason": null
987+
},
988+
{
989+
"name": "SCALAR",
990+
"description": "Location adjacent to a scalar definition.",
991+
"isDeprecated": false,
992+
"deprecationReason": null
993+
},
994+
{
995+
"name": "OBJECT",
996+
"description": "Location adjacent to an object type definition.",
997+
"isDeprecated": false,
998+
"deprecationReason": null
999+
},
1000+
{
1001+
"name": "FIELD_DEFINITION",
1002+
"description": "Location adjacent to a field definition.",
1003+
"isDeprecated": false,
1004+
"deprecationReason": null
1005+
},
1006+
{
1007+
"name": "ARGUMENT_DEFINITION",
1008+
"description": "Location adjacent to an argument definition.",
1009+
"isDeprecated": false,
1010+
"deprecationReason": null
1011+
},
1012+
{
1013+
"name": "INTERFACE",
1014+
"description": "Location adjacent to an interface definition.",
1015+
"isDeprecated": false,
1016+
"deprecationReason": null
1017+
},
1018+
{
1019+
"name": "UNION",
1020+
"description": "Location adjacent to a union definition.",
1021+
"isDeprecated": false,
1022+
"deprecationReason": null
1023+
},
1024+
{
1025+
"name": "ENUM",
1026+
"description": "Location adjacent to an enum definition.",
1027+
"isDeprecated": false,
1028+
"deprecationReason": null
1029+
},
1030+
{
1031+
"name": "ENUM_VALUE",
1032+
"description": "Location adjacent to an enum value definition.",
1033+
"isDeprecated": false,
1034+
"deprecationReason": null
1035+
},
1036+
{
1037+
"name": "INPUT_OBJECT",
1038+
"description": "Location adjacent to an input object type definition.",
1039+
"isDeprecated": false,
1040+
"deprecationReason": null
1041+
},
1042+
{
1043+
"name": "INPUT_FIELD_DEFINITION",
1044+
"description": "Location adjacent to an input object field definition.",
1045+
"isDeprecated": false,
1046+
"deprecationReason": null
1047+
}
1048+
],
1049+
"possibleTypes": null
8901050
}
8911051
],
8921052
"directives": [
8931053
{
8941054
"name": "include",
8951055
"description": "Directs the executor to include this field or fragment only when the `if` argument is true.",
1056+
"locations": [
1057+
"FIELD",
1058+
"FRAGMENT_SPREAD",
1059+
"INLINE_FRAGMENT"
1060+
],
8961061
"args": [
8971062
{
8981063
"name": "if",
@@ -908,14 +1073,16 @@
9081073
},
9091074
"defaultValue": null
9101075
}
911-
],
912-
"onOperation": false,
913-
"onFragment": true,
914-
"onField": true
1076+
]
9151077
},
9161078
{
9171079
"name": "skip",
9181080
"description": "Directs the executor to skip this field or fragment when the `if` argument is true.",
1081+
"locations": [
1082+
"FIELD",
1083+
"FRAGMENT_SPREAD",
1084+
"INLINE_FRAGMENT"
1085+
],
9191086
"args": [
9201087
{
9211088
"name": "if",
@@ -931,10 +1098,27 @@
9311098
},
9321099
"defaultValue": null
9331100
}
1101+
]
1102+
},
1103+
{
1104+
"name": "deprecated",
1105+
"description": "Marks an element of a GraphQL schema as no longer supported.",
1106+
"locations": [
1107+
"FIELD_DEFINITION",
1108+
"ENUM_VALUE"
9341109
],
935-
"onOperation": false,
936-
"onFragment": true,
937-
"onField": true
1110+
"args": [
1111+
{
1112+
"name": "reason",
1113+
"description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formattedin [Markdown](https://daringfireball.net/projects/markdown/).",
1114+
"type": {
1115+
"kind": "SCALAR",
1116+
"name": "String",
1117+
"ofType": null
1118+
},
1119+
"defaultValue": "\"No longer supported\""
1120+
}
1121+
]
9381122
}
9391123
]
9401124
}

0 commit comments

Comments
 (0)