Annotation OverrideDirective
-
- All Implemented Interfaces:
public @interface OverrideDirective
directive @override(from: String!) on FIELD_DEFINITION
The @override directive is used to indicate that the current subgraph is taking responsibility for resolving the marked field away from the subgraph specified in the from argument. Name of the subgraph to be overridden has to match the name of the subgraph that was used to publish their schema.
NOTE: Only one subgraph can
@override
any given field. If multiple subgraphs attempt to@override
the same field, a composition error occurs.