diff --git a/generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/directives/OverrideDirective.kt b/generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/directives/OverrideDirective.kt index d4d57cdf98..b3fd17e1df 100644 --- a/generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/directives/OverrideDirective.kt +++ b/generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/directives/OverrideDirective.kt @@ -28,7 +28,7 @@ import graphql.schema.GraphQLNonNull * ``` * * The @override directive is used to indicate that the current subgraph is taking responsibility for resolving the marked field away from the subgraph specified in the from argument. Name of the subgraph - * to be overriden has to match the name of the subgraph that was used to publish their schema. + * to be overridden has to match the name of the subgraph that was used to publish their schema. * * >NOTE: Only one subgraph can `@override` any given field. If multiple subgraphs attempt to `@override` the same field, a composition error occurs. * @@ -36,7 +36,6 @@ import graphql.schema.GraphQLNonNull * * @see Publishing schema to Apollo Studio */ -@Repeatable @GraphQLDirective( name = OVERRIDE_DIRECTIVE_NAME, description = OVERRIDE_DIRECTIVE_DESCRIPTION, @@ -56,5 +55,4 @@ internal val OVERRIDE_DIRECTIVE_TYPE: graphql.schema.GraphQLDirective = graphql. .name("from") .type(GraphQLNonNull.nonNull(Scalars.GraphQLString)) ) - .repeatable(true) .build() diff --git a/generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaV2GeneratorTest.kt b/generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaV2GeneratorTest.kt index da67157427..019bebcc03 100644 --- a/generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaV2GeneratorTest.kt +++ b/generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaV2GeneratorTest.kt @@ -64,7 +64,7 @@ class FederatedSchemaV2GeneratorTest { directive @link(import: [String], url: String) repeatable on SCHEMA "Overrides fields resolution logic from other subgraph. Used for migrating fields from one subgraph to another." - directive @override(from: String!) repeatable on FIELD_DEFINITION + directive @override(from: String!) on FIELD_DEFINITION "Specifies the base type field set that will be selectable by the gateway" directive @provides(fields: _FieldSet!) on FIELD_DEFINITION