Skip to content

Commit 9a226cc

Browse files
committed
fix(#680): override new directive method
1 parent 4657c9d commit 9a226cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/graphql/kickstart/tools/directive/SchemaDirectiveWiringEnvironmentImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class SchemaDirectiveWiringEnvironmentImpl<T : GraphQLDirectiveContainer?>(
3939

4040
override fun getElement(): T = element
4141
override fun getDirective(): GraphQLDirective? = registeredDirective
42+
override fun getAppliedDirective(): GraphQLAppliedDirective? = appliedDirectives[registeredDirective?.name]
4243
override fun getDirectives(): Map<String, GraphQLDirective> = LinkedHashMap(directives)
4344
override fun getDirective(directiveName: String): GraphQLDirective = directives[directiveName]!!
4445
override fun getAppliedDirectives(): Map<String, GraphQLAppliedDirective> = appliedDirectives

0 commit comments

Comments
 (0)