@@ -965,6 +965,14 @@ type Query {
965965 // args and directives are sorted like the rest of the schema printer
966966 result == ''' directive @argDirective on ARGUMENT_DEFINITION
967967
968+ "This directive allows results to be deferred during execution"
969+ directive @defer(
970+ "Deferred behaviour is controlled by this argument"
971+ if: Boolean! = true,
972+ "A unique label that represents the fragment being deferred"
973+ label: String
974+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
975+
968976"Marks the field, argument, input field or enum value as deprecated"
969977directive @deprecated(
970978 "The reason for the deprecation"
@@ -1144,7 +1152,15 @@ input SomeInput {
11441152
11451153 then :
11461154 // args and directives are sorted like the rest of the schema printer
1147- result == ''' "Marks the field, argument, input field or enum value as deprecated"
1155+ result == ''' "This directive allows results to be deferred during execution"
1156+ directive @defer(
1157+ "Deferred behaviour is controlled by this argument"
1158+ if: Boolean! = true,
1159+ "A unique label that represents the fragment being deferred"
1160+ label: String
1161+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
1162+
1163+ "Marks the field, argument, input field or enum value as deprecated"
11481164directive @deprecated(
11491165 "The reason for the deprecation"
11501166 reason: String! = "No longer supported"
@@ -1243,7 +1259,15 @@ type Query {
12431259 def resultWithDirectives = new SchemaPrinter (defaultOptions(). includeDirectives(true )). print (schema)
12441260
12451261 then :
1246- resultWithDirectives == ''' "Marks the field, argument, input field or enum value as deprecated"
1262+ resultWithDirectives == ''' "This directive allows results to be deferred during execution"
1263+ directive @defer(
1264+ "Deferred behaviour is controlled by this argument"
1265+ if: Boolean! = true,
1266+ "A unique label that represents the fragment being deferred"
1267+ label: String
1268+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
1269+
1270+ "Marks the field, argument, input field or enum value as deprecated"
12471271directive @deprecated(
12481272 "The reason for the deprecation"
12491273 reason: String! = "No longer supported"
@@ -1314,7 +1338,15 @@ type Query {
13141338 def resultWithDirectiveDefinitions = new SchemaPrinter (defaultOptions(). includeDirectiveDefinitions(true )). print (schema)
13151339
13161340 then :
1317- resultWithDirectiveDefinitions == ''' "Marks the field, argument, input field or enum value as deprecated"
1341+ resultWithDirectiveDefinitions == ''' "This directive allows results to be deferred during execution"
1342+ directive @defer(
1343+ "Deferred behaviour is controlled by this argument"
1344+ if: Boolean! = true,
1345+ "A unique label that represents the fragment being deferred"
1346+ label: String
1347+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
1348+
1349+ "Marks the field, argument, input field or enum value as deprecated"
13181350directive @deprecated(
13191351 "The reason for the deprecation"
13201352 reason: String! = "No longer supported"
@@ -1414,6 +1446,14 @@ extend schema {
14141446 subscription: MySubscription
14151447}
14161448
1449+ "This directive allows results to be deferred during execution"
1450+ directive @defer(
1451+ "Deferred behaviour is controlled by this argument"
1452+ if: Boolean! = true,
1453+ "A unique label that represents the fragment being deferred"
1454+ label: String
1455+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
1456+
14171457"Marks the field, argument, input field or enum value as deprecated"
14181458directive @deprecated(
14191459 "The reason for the deprecation"
@@ -1503,6 +1543,14 @@ schema @schemaDirective{
15031543 mutation: MyMutation
15041544}
15051545
1546+ "This directive allows results to be deferred during execution"
1547+ directive @defer(
1548+ "Deferred behaviour is controlled by this argument"
1549+ if: Boolean! = true,
1550+ "A unique label that represents the fragment being deferred"
1551+ label: String
1552+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
1553+
15061554"Marks the field, argument, input field or enum value as deprecated"
15071555directive @deprecated(
15081556 "The reason for the deprecation"
@@ -1646,7 +1694,15 @@ type MyQuery {
16461694 def result = new SchemaPrinter (printOptions). print (schema)
16471695
16481696 then :
1649- result == ''' "Marks the field, argument, input field or enum value as deprecated"
1697+ result == ''' "This directive allows results to be deferred during execution"
1698+ directive @defer(
1699+ "Deferred behaviour is controlled by this argument"
1700+ if: Boolean! = true,
1701+ "A unique label that represents the fragment being deferred"
1702+ label: String
1703+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
1704+
1705+ "Marks the field, argument, input field or enum value as deprecated"
16501706directive @deprecated(
16511707 "The reason for the deprecation"
16521708 reason: String! = "No longer supported"
@@ -2185,6 +2241,14 @@ type PrintMeType {
21852241 query: MyQuery
21862242}
21872243
2244+ "This directive allows results to be deferred during execution"
2245+ directive @defer(
2246+ "Deferred behaviour is controlled by this argument"
2247+ if: Boolean! = true,
2248+ "A unique label that represents the fragment being deferred"
2249+ label: String
2250+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
2251+
21882252"Marks the field, argument, input field or enum value as deprecated"
21892253directive @deprecated(
21902254 "The reason for the deprecation"
@@ -2429,6 +2493,14 @@ directive @deprecated(
24292493 reason: String! = "No longer supported"
24302494 ) on FIELD_DEFINITION | ARGUMENT_DEFINITION | ENUM_VALUE | INPUT_FIELD_DEFINITION
24312495
2496+ "This directive allows results to be deferred during execution"
2497+ directive @defer(
2498+ "A unique label that represents the fragment being deferred"
2499+ label: String,
2500+ "Deferred behaviour is controlled by this argument"
2501+ if: Boolean! = true
2502+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
2503+
24322504union ZUnion = XQuery | Query
24332505
24342506scalar ZScalar
@@ -2539,6 +2611,14 @@ schema {
25392611 mutation: Mutation
25402612}
25412613
2614+ "This directive allows results to be deferred during execution"
2615+ directive @defer(
2616+ "Deferred behaviour is controlled by this argument"
2617+ if: Boolean! = true,
2618+ "A unique label that represents the fragment being deferred"
2619+ label: String
2620+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
2621+
25422622"Marks the field, argument, input field or enum value as deprecated"
25432623directive @deprecated(
25442624 "The reason for the deprecation"
@@ -2779,6 +2859,14 @@ schema {
27792859 mutation: Mutation
27802860}
27812861
2862+ "This directive allows results to be deferred during execution"
2863+ directive @defer(
2864+ "Deferred behaviour is controlled by this argument"
2865+ if: Boolean! = true,
2866+ "A unique label that represents the fragment being deferred"
2867+ label: String
2868+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
2869+
27822870"Marks the field, argument, input field or enum value as deprecated"
27832871directive @deprecated(
27842872 "The reason for the deprecation"
@@ -2970,7 +3058,15 @@ input Input {
29703058
29713059 expect : " has no skip definition"
29723060
2973- result == """ "Marks the field, argument, input field or enum value as deprecated"
3061+ result == """ "This directive allows results to be deferred during execution"
3062+ directive @defer(
3063+ "Deferred behaviour is controlled by this argument"
3064+ if: Boolean! = true,
3065+ "A unique label that represents the fragment being deferred"
3066+ label: String
3067+ ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
3068+
3069+ "Marks the field, argument, input field or enum value as deprecated"
29743070directive @deprecated(
29753071 "The reason for the deprecation"
29763072 reason: String! = "No longer supported"
0 commit comments