Annotation Interface Link
@Description("This directive links definitions from an external specification to this schema.")
@Retention(RUNTIME)
@Repeatable(Links.class)
@Experimental("SmallRye GraphQL Federation is still subject to change.")
public @interface Link
directive @link(url: String!, as: String, import: [Import], for: Purpose) repeatable on SCHEMA- See Also:
-
Field Details
-
FEDERATION_SPEC_URL
- See Also:
-
FEDERATION_SPEC_LATEST_VER
- See Also:
-
FEDERATION_SPEC_LATEST_URL
- See Also:
-
-
Element Details
-
url
-
as
- Default:
""
-
_import
@Description("A list of elements to import from the foreign schema into the document.") @Name("import") Import[] _import- Default:
{}
-
_for
@Description("An optional purpose for this link. This hints to consumers as to whether they can safely ignore metadata described by a foreign schema.") @Name("for") Purpose _for- Default:
UNDEFINED
-