We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fabc0ce commit 783d64dCopy full SHA for 783d64d
src/main/kotlin/com/coxautodev/graphql/tools/SchemaParserBuilder.kt
@@ -89,6 +89,13 @@ class SchemaParserBuilder constructor(private val dictionary: SchemaParserDictio
89
this.scalars.addAll(scalars)
90
}
91
92
+ /**
93
+ * Add scalars to the parser's dictionary.
94
+ */
95
+ fun scalars(scalars: List<GraphQLScalarType>) = this.apply {
96
+ this.scalars.addAll(scalars)
97
+ }
98
+
99
fun directive(name: String, directive: SchemaDirectiveWiring) = this.apply {
100
this.runtimeWiringBuilder.directive(name, directive)
101
0 commit comments