Bird
0
0

Why was GraphQL created as a new way to request data from APIs?

easy📝 Conceptual Q11 of 15
GraphQL - Basics and Philosophy
Why was GraphQL created as a new way to request data from APIs?
ATo force clients to download all data every time.
BTo make APIs slower and more complex.
CTo let clients ask for exactly the data they need, no more, no less.
DTo replace databases with a new storage system.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the problem GraphQL solves

    Traditional APIs often send too much or too little data, causing inefficiency.
  2. Step 2: Identify GraphQL's main benefit

    GraphQL allows clients to specify exactly what data they want, improving efficiency.
  3. Final Answer:

    To let clients ask for exactly the data they need, no more, no less. -> Option C
  4. Quick Check:

    GraphQL = precise data requests [OK]
Quick Trick: GraphQL lets you ask only for what you need [OK]
Common Mistakes:
  • Thinking GraphQL makes APIs slower
  • Believing GraphQL replaces databases
  • Assuming GraphQL sends all data always

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes