Skip to content

Commit 47d02d3

Browse files
authored
Merge pull request #312 from cliedeman/feat/directive-wiring
Added directive wiring
2 parents a03f31a + ecca60f commit 47d02d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ class SchemaParserBuilder constructor(private val dictionary: SchemaParserDictio
9494
this.runtimeWiringBuilder.directive(name, directive)
9595
}
9696

97+
fun directiveWiring(directive: SchemaDirectiveWiring) = this.apply {
98+
this.runtimeWiringBuilder.directiveWiring(directive)
99+
}
100+
97101
/**
98102
* Add arbitrary classes to the parser's dictionary, overriding the generated type name.
99103
*/

0 commit comments

Comments
 (0)