Annotation Type Key


  • @Description("The @key directive is used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface.")
    @Retention(RUNTIME)
    @Experimental("SmallRye GraphQL Federation is still subject to change.")
    public @interface Key
    directive @key(fields: _FieldSet!) on OBJECT | INTERFACE
    • Required Element Summary

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

      • fields

        @NonNull
        @NonNull String[] fields