DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
GraphQL Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
GraphQL
When should a union be used instead of an interface?
A
Always — unions are strictly better
B
When the types involved are genuinely different shapes with little to no required shared fields, unlike an interface's shared-field guarantee
C
Only for numeric types
D
Interfaces and unions are interchangeable in every case
Check Answer