-
- All Implemented Interfaces:
public @interface LinkDirectivedirective @link(url: String, import: [Import]) repeatable on SCHEMAThe
@linkdirective 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-kotlinautomatically imports ALL federation directives to avoid the need for namespacing.