You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/main/kotlin/com/expediagroup/graphql/generator/federation/directives/OverrideDirective.kt
* 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
31
-
* to be overriden has to match the name of the subgraph that was used to publish their schema.
31
+
* to be overridden has to match the name of the subgraph that was used to publish their schema.
32
32
*
33
33
* >NOTE: Only one subgraph can `@override` any given field. If multiple subgraphs attempt to `@override` the same field, a composition error occurs.
34
34
*
35
35
* @param from name of the subgraph to override field resolution
36
36
*
37
37
* @see <a href="https://www.apollographql.com/docs/rover/subgraphs/#publishing-a-subgraph-schema-to-apollo-studio">Publishing schema to Apollo Studio</a>
38
38
*/
39
-
@Repeatable
40
39
@GraphQLDirective(
41
40
name =OVERRIDE_DIRECTIVE_NAME,
42
41
description =OVERRIDE_DIRECTIVE_DESCRIPTION,
@@ -56,5 +55,4 @@ internal val OVERRIDE_DIRECTIVE_TYPE: graphql.schema.GraphQLDirective = graphql.
Copy file name to clipboardExpand all lines: generator/graphql-kotlin-federation/src/test/kotlin/com/expediagroup/graphql/generator/federation/FederatedSchemaV2GeneratorTest.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ class FederatedSchemaV2GeneratorTest {
64
64
directive @link(import: [String], url: String) repeatable on SCHEMA
65
65
66
66
"Overrides fields resolution logic from other subgraph. Used for migrating fields from one subgraph to another."
67
-
directive @override(from: String!) repeatable on FIELD_DEFINITION
67
+
directive @override(from: String!) on FIELD_DEFINITION
68
68
69
69
"Specifies the base type field set that will be selectable by the gateway"
70
70
directive @provides(fields: _FieldSet!) on FIELD_DEFINITION
0 commit comments