Skip to content

Commit cf387b0

Browse files
committed
Use directives of inputDefinition instead of object fix #280
1 parent 94518ee commit cf387b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coxautodev/graphql/tools/SchemaParser.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class SchemaParser internal constructor(scanResult: ScannedSchemaObjects, privat
203203
.description(if (inputDefinition.description != null) inputDefinition.description.content else getDocumentation(inputDefinition))
204204
.defaultValue(inputDefinition.defaultValue)
205205
.type(determineInputType(inputDefinition.type))
206-
.withDirectives(*buildDirectives(definition.directives, setOf(), Introspection.DirectiveLocation.INPUT_FIELD_DEFINITION))
206+
.withDirectives(*buildDirectives(inputDefinition.directives, setOf(), Introspection.DirectiveLocation.INPUT_FIELD_DEFINITION))
207207
builder.field(fieldBuilder.build())
208208
}
209209

0 commit comments

Comments
 (0)