Bird
0
0

What is a common limitation of REST APIs compared to GraphQL?

easy📝 Conceptual Q2 of 15
GraphQL - Basics and Philosophy
What is a common limitation of REST APIs compared to GraphQL?
AREST APIs cannot handle JSON data.
BREST APIs often require multiple requests to fetch related data.
CREST APIs do not support HTTP methods like GET or POST.
DREST APIs always return data in XML format.
Step-by-Step Solution
Solution:
  1. Step 1: Review REST API data fetching

    REST APIs often require separate requests to different endpoints to get related data (e.g., user info and their posts).
  2. Step 2: Compare with GraphQL's single request

    GraphQL allows fetching related data in one query, reducing the number of requests.
  3. Final Answer:

    REST APIs often require multiple requests to fetch related data. -> Option B
  4. Quick Check:

    REST limitation = D [OK]
Quick Trick: REST needs multiple calls for related data; GraphQL fetches all at once. [OK]
Common Mistakes:
  • Believing REST cannot handle JSON
  • Confusing HTTP method support in REST

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes