@@ -168,6 +168,7 @@ class SchemaParser internal constructor(
168
168
.definition(inputDefinition)
169
169
.description(getDocumentation(inputDefinition, options))
170
170
.apply { inputDefinition.defaultValue?.let { v -> defaultValueLiteral(v) } }
171
+ .apply { getDeprecated(inputDefinition.directives)?.let { deprecate(it) } }
171
172
.type(determineInputType(inputDefinition.type, inputObjects, referencingInputObjects))
172
173
.withAppliedDirectives(* buildAppliedDirectives(inputDefinition.directives))
173
174
builder.field(fieldBuilder.build())
@@ -279,6 +280,7 @@ class SchemaParser internal constructor(
279
280
.definition(argumentDefinition)
280
281
.description(getDocumentation(argumentDefinition, options))
281
282
.type(determineInputType(argumentDefinition.type, inputObjects, setOf ()))
283
+ .apply { getDeprecated(argumentDefinition.directives)?.let { deprecate(it) } }
282
284
.apply { argumentDefinition.defaultValue?.let { defaultValueLiteral(it) } }
283
285
.withAppliedDirectives(* buildAppliedDirectives(argumentDefinition.directives))
284
286
@@ -305,6 +307,7 @@ class SchemaParser internal constructor(
305
307
.definition(arg)
306
308
.description(getDocumentation(arg, options))
307
309
.type(determineInputType(arg.type, inputObjects, setOf ()))
310
+ .apply { getDeprecated(arg.directives)?.let { deprecate(it) } }
308
311
.apply { arg.defaultValue?.let { defaultValueLiteral(it) } }
309
312
.withAppliedDirectives(* buildAppliedDirectives(arg.directives))
310
313
.build())
0 commit comments