diff --git a/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/directive/Directive.kt b/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/directive/Directive.kt index 539b439..dd6e361 100644 --- a/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/directive/Directive.kt +++ b/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/directive/Directive.kt @@ -16,7 +16,8 @@ data class Directive( override val locations: List, val execution: DirectiveExecution, override val description: String?, - val arguments: List> + val arguments: List>, + override val isRepeatable: Boolean? ) : __Directive { override val args: List<__InputValue> @@ -26,14 +27,16 @@ data class Directive( val name: String, val locations: List, val execution: DirectiveExecution, - val description: String? = null + val description: String? = null, + val isRepeatable: Boolean? = null ) { fun toDirective(inputValues: List>) = Directive( name = this.name, locations = this.locations, execution = this.execution, description = this.description, - arguments = inputValues + arguments = inputValues, + isRepeatable = isRepeatable ) } diff --git a/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/introspection/__Directive.kt b/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/introspection/__Directive.kt index e4ba0d1..18eba13 100644 --- a/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/introspection/__Directive.kt +++ b/kgraphql/src/main/kotlin/com/apurebase/kgraphql/schema/introspection/__Directive.kt @@ -7,4 +7,6 @@ interface __Directive : __Described { val locations: List val args: List<__InputValue> + + val isRepeatable: Boolean? } \ No newline at end of file diff --git a/kgraphql/src/test/kotlin/com/apurebase/kgraphql/integration/BaseSchemaTest.kt b/kgraphql/src/test/kotlin/com/apurebase/kgraphql/integration/BaseSchemaTest.kt index da7e9b6..5c40ae8 100644 --- a/kgraphql/src/test/kotlin/com/apurebase/kgraphql/integration/BaseSchemaTest.kt +++ b/kgraphql/src/test/kotlin/com/apurebase/kgraphql/integration/BaseSchemaTest.kt @@ -38,6 +38,7 @@ abstract class BaseSchemaTest { args(includeDeprecated: true) { ...InputValue } + isRepeatable } } }