How does GraphQL improve over-fetching and under-fetching issues common in REST?
a) By sending multiple API requests
b) By allowing the client to request only the specific data it needs
c) By caching the entire response
d) By using SOAP for data fetching
Answer:
b) By allowing the client to request only the specific data it needs
Explanation:
GraphQL solves over-fetching and under-fetching issues by allowing clients to request exactly the data they need, avoiding unnecessary data transfer.