diff --git a/plugin/federation/federation.go b/plugin/federation/federation.go index 61f905b892a..cd60acee25d 100644 --- a/plugin/federation/federation.go +++ b/plugin/federation/federation.go @@ -102,10 +102,10 @@ func (f *federation) InjectSourceEarly() *ast.Source { ` } else if f.Version == 2 { input += ` - directive @key(fields: _FieldSet!, resolvable: Boolean) repeatable on OBJECT | INTERFACE + directive @key(fields: _FieldSet!, resolvable: Boolean = true) repeatable on OBJECT | INTERFACE directive @link(import: [String!], url: String!) repeatable on SCHEMA directive @shareable on OBJECT | FIELD_DEFINITION - directive @tag repeatable on OBJECT | FIELD_DEFINITION | INTERFACE | UNION + directive @tag(name: String!) repeatable on FIELD_DEFINITION | INTERFACE | OBJECT | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION directive @override(from: String!) on FIELD_DEFINITION directive @inaccessible on SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION `