Annotation Interface ComposeDirective


@Description("Indicates to composition that all uses of a particular custom type system directive in the subgraph schema should be preserved in the supergraph schema (by default, composition omits most directives from the supergraph schema).") @Retention(RUNTIME) @Repeatable(ComposeDirectives.class) @Experimental("SmallRye GraphQL Federation is still subject to change.") public @interface ComposeDirective
directive @composeDirective(name: String!) repeatable on SCHEMA
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    @NonNull String
     
  • Element Details

    • name

      @NonNull @Description("The name (including the leading @) of the directive to preserve during composition.") @NonNull String name