Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf387b0

Browse files
committedJun 18, 2019
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.