Annotation Type Requires


  • @Description("Indicates that the resolver for a particular entity field depends on the values of other entity fields that are resolved by other subgraphs. This tells the graph router that it needs to fetch the values of those externally defined fields first, even if the original client query didn\'t request them.")
    @Retention(RUNTIME)
    @Experimental("SmallRye GraphQL Federation is still subject to change. Additionally, this annotation is currently only a directive without explicit support from the extension.")
    public @interface Requires
    directive @requires(fields: FieldSet!) on FIELD_DEFINITION
    See Also:
    federation spec
    • Required Element Summary

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

      • fields

        @NonNull
        @NonNull String fields