Annotation Type Policy


  • @Description("Indicates to composition that the target element is restricted based on authorization policies that are evaluated in a Rhai script or coprocessor.")
    @Retention(RUNTIME)
    @Experimental("SmallRye GraphQL Federation is still subject to change.")
    public @interface Policy
    directive @policy(policies: [[Policy!]!]!) on FIELD_DEFINITION | OBJECT | INTERFACE | SCALAR | ENUM
    See Also:
    federation spec
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      @NonNull PolicyGroup[] policies  
    • Element Detail

      • policies

        @NonNull
        @Description("List of authorization policies to evaluate.")
        @NonNull PolicyGroup[] policies