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!) on FIELD_DEFINITION
    See Also:
    federation spec
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      @NonNull String from  
    • 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