1. What is the main purpose of GraphQL variables?
- To cache queries
- To pass dynamic values into queries
- To define schema fields
- To validate responses
Reveal sample answer and explanation
Answer: To pass dynamic values into queries
Variables allow dynamic values without changing the query structure.