Skip to content

Commit 192f082

Browse files
committed
Extended supported types for directives
1 parent 2bec6da commit 192f082

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ class SchemaParser internal constructor(scanResult: ScannedSchemaObjects, privat
185185
field.description(getDocumentation(inputDefinition))
186186
field.defaultValue(inputDefinition.defaultValue)
187187
field.type(determineInputType(inputDefinition.type))
188+
field.withDirectives(*buildDirectives(definition.directives, setOf(), Introspection.DirectiveLocation.INPUT_FIELD_DEFINITION))
188189
}
189190
}
190191

@@ -280,6 +281,8 @@ class SchemaParser internal constructor(scanResult: ScannedSchemaObjects, privat
280281
argument.description(getDocumentation(argumentDefinition))
281282
argument.defaultValue(buildDefaultValue(argumentDefinition.defaultValue))
282283
argument.type(determineInputType(argumentDefinition.type))
284+
argument.withDirectives(*buildDirectives(argumentDefinition.directives, setOf(), Introspection.DirectiveLocation.ARGUMENT_DEFINITION))
285+
283286
}
284287
}
285288
field.withDirectives(*buildDirectives(fieldDefinition.directives, setOf(), Introspection.DirectiveLocation.FIELD_DEFINITION))

0 commit comments

Comments
 (0)