API Design · Middle · Question 45 of 75
How does GraphQL usually handle schema evolution?
- 1By releasing
/graphql/v2every month - 2By changing field types in place
- ✓Correct answer: By adding fields and deprecating old ones with
@deprecated, avoiding versions, since clients request only fields they use
Explanation
Field usage metrics show when a deprecated field can be removed safely.