Annotation Type Override


  • @Retention(RUNTIME)
    @Description("Indicates that an object field is now resolved by this subgraph instead of another subgraph where it\'s also defined. This enables you to migrate a field from one subgraph to another.\nYou can apply @override to entity fields and fields of the root operation types (such as Query and Mutation).")
    @Experimental("SmallRye GraphQL Federation is still subject to change.")
    public @interface Override
    directive @override(from: String!, label: String) on FIELD_DEFINITION
    See Also:
    federation spec
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      @NonNull String from  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String label  
    • Element Detail

      • from

        @NonNull
        @Description("The name of the other subgraph that no longer resolves the field.\nIf you\'re performing composition with managed federation, this must match the name of the subgraph in Apollo Studio.\nIf you\'re performing composition with the Rover CLI, this must match the name of the subgraph in the YAML config file you provide to rover supergraph compose.")
        @NonNull String from
      • label

        @Description("A string of arbitrary arguments. Currently supported:\npercent(<percent-value>) - The percentage of traffic for the field that\'s resolved by this subgraph. The remaining percentage is resolved by the other (from) subgraph.")
        String label
        Default:
        ""