Recall & Review
beginner
What is Apollo Federation in GraphQL?
Apollo Federation is a way to combine multiple GraphQL services into one unified graph, allowing teams to build and maintain parts of the graph independently.
Click to reveal answer
beginner
What is a
@key directive in Apollo Federation?The
@key directive marks a field or set of fields as the unique identifier for an entity in a subgraph, so it can be referenced and resolved across services.Click to reveal answer
intermediate
Explain the role of the
@extends directive in Apollo Federation.The
@extends directive is used to indicate that a type or field is extending an entity defined in another subgraph, allowing services to add fields to shared types.Click to reveal answer
intermediate
What does the
@external directive do in Apollo Federation?The
@external directive marks a field as owned by another subgraph, so the current subgraph can reference it but does not provide its value.Click to reveal answer
beginner
How does Apollo Gateway work in Apollo Federation?
Apollo Gateway acts as a single entry point that composes the subgraphs' schemas into one federated schema and routes incoming queries to the appropriate subgraphs.
Click to reveal answer
What is the purpose of the
@key directive in Apollo Federation?✗ Incorrect
The
@key directive identifies the unique fields that represent an entity across subgraphs.Which component composes multiple subgraphs into a single schema in Apollo Federation?
✗ Incorrect
Apollo Gateway combines subgraphs into one federated schema and routes queries.
What does the
@external directive indicate?✗ Incorrect
The
@external directive marks fields that belong to other subgraphs.How do subgraphs share and extend types in Apollo Federation?
✗ Incorrect
The
@extends directive allows subgraphs to add fields to types defined elsewhere.What is the main benefit of Apollo Federation?
✗ Incorrect
Apollo Federation allows independent teams to develop and deploy parts of a unified graph.
Describe how Apollo Federation allows multiple GraphQL services to work together as one.
Think about how different teams can build parts and how they connect.
You got /4 concepts.
Explain the roles of the @key, @extends, and @external directives in Apollo Federation.
Focus on how these directives help share and extend types.
You got /3 concepts.