Recall & Review
beginner
What is Gateway Composition in GraphQL?
Gateway Composition is a method to combine multiple GraphQL services into one unified API, allowing clients to query data from different sources through a single endpoint.
Click to reveal answer
beginner
How does Gateway Composition improve client experience?
It simplifies client requests by providing a single GraphQL endpoint that aggregates data from multiple services, so clients don't need to manage multiple APIs separately.
Click to reveal answer
intermediate
What role does a Gateway play in Gateway Composition?
The Gateway acts as a central server that receives client queries, splits them into sub-queries for different services, then combines the results into one response.
Click to reveal answer
intermediate
Name one challenge Gateway Composition helps to solve.
It helps solve the problem of data fragmentation by merging multiple GraphQL schemas into a single schema, making data access easier and more consistent.
Click to reveal answer
advanced
What is a key difference between Gateway Composition and schema stitching?
Gateway Composition focuses on composing multiple GraphQL services at runtime with a gateway, while schema stitching merges schemas statically before serving them.
Click to reveal answer
What does a GraphQL Gateway do in Gateway Composition?
✗ Incorrect
The Gateway combines multiple GraphQL services into a single API endpoint for clients.
Which benefit does Gateway Composition provide to clients?
✗ Incorrect
Clients use a single endpoint to access data from multiple services.
Gateway Composition typically involves:
✗ Incorrect
Gateway Composition merges multiple GraphQL schemas dynamically at runtime.
Which is NOT a function of the Gateway in Gateway Composition?
✗ Incorrect
The Gateway does not store client data permanently; it routes and combines queries and responses.
Gateway Composition helps to:
✗ Incorrect
It simplifies data access by unifying multiple services under one API.
Explain what Gateway Composition is and why it is useful in GraphQL.
Think about how multiple data sources can be accessed easily by clients.
You got /4 concepts.
Describe the role of the Gateway in Gateway Composition and how it handles client queries.
Focus on the Gateway's job as a middleman between clients and services.
You got /4 concepts.