Recall & Review
beginner
What problem does GraphQL solve compared to traditional REST APIs?
GraphQL solves the problem of over-fetching and under-fetching data by allowing clients to request exactly what they need in a single query.
Click to reveal answer
beginner
How does GraphQL improve efficiency in data retrieval?
GraphQL lets clients specify the exact fields they want, reducing unnecessary data transfer and multiple requests.
Click to reveal answer
intermediate
Why is flexibility important in GraphQL's design?
Flexibility allows clients to evolve their data needs without changing the backend, making development faster and easier.
Click to reveal answer
intermediate
What is a common limitation of REST APIs that GraphQL addresses?
REST APIs often require multiple endpoints and requests to gather related data, while GraphQL can fetch all related data in one query.
Click to reveal answer
intermediate
How does GraphQL help frontend and backend teams work better together?
GraphQL creates a clear contract where frontend can ask for data independently, reducing backend changes and speeding up development.
Click to reveal answer
What is a main reason GraphQL was created?
✗ Incorrect
GraphQL was created to let clients specify exactly what data they want, avoiding over-fetching or under-fetching.
How does GraphQL reduce the number of requests compared to REST?
✗ Incorrect
GraphQL allows clients to request all needed data in one query, reducing multiple round trips.
Which of these is NOT a benefit of GraphQL?
✗ Incorrect
GraphQL does not handle database indexing; it focuses on flexible data querying.
Why might frontend developers prefer GraphQL?
✗ Incorrect
GraphQL lets frontend developers request data precisely, reducing dependency on backend changes.
What is a key difference between REST and GraphQL?
✗ Incorrect
REST APIs typically have many endpoints, while GraphQL uses one endpoint for all queries.
Explain in simple terms why GraphQL was created and what problems it solves.
Think about how apps get data and what can be annoying about old ways.
You got /5 concepts.
Describe how GraphQL helps frontend and backend teams work more smoothly together.
Focus on teamwork and communication between developers.
You got /4 concepts.