GraphQL - Basics and Philosophy
Which GraphQL query syntax correctly avoids over-fetching by requesting only the user's name and email?
{ user { name email } } requests only name and email, exactly what is needed.{ user { id name email } } includes id (extra), B and D include posts and comments (extra data).{ user { name email } } [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions