-
- All Implemented Interfaces:
public @interface LinkDirective
directive @link(url: String, import: [Import]) repeatable on SCHEMA
The
@link
directive links definitions within the document to external schemas.External schemas are identified by their url, which optionally ends with a name and version with the following format:
{NAME}/v{MAJOR}.{MINOR}
By default, external types should be namespaced (prefixed with namespace__, e.g. key directive should be namespaced as federation__key) unless they are explicitly imported.
graphql-kotlin
automatically imports ALL federation directives to avoid the need for namespacing.