Annotation Type 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:
    federation spec
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      @NonNull String name  
    • Element Detail

      • name

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