Q38: What are `@external`, `@requires`, and `@provides` in Apollo Federation?
@external: Marks a field as owned by another subgraph.@requires(fields: "..."): Specifies that a local computed field requires data from external fields owned by another subgraph.@provides(fields: "..."): Optimization where a subgraph promises to supply specific external fields to reduce extra gateway round-trips.
Key Takeaways
- These directives manage cross-service field dependencies and plan execution routing in federated graphs.
Knowledge Check
Which directive signifies that a local computed field depends on data managed by a different subgraph?