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

  • Element Details

    • url

      @NonNull @Description("The foreign schema\u2019s URL.") @NonNull String url
    • as

      @Description("Change the namespace prefix assigned to the foreign schema.") String 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