Bird
0
0

Given this mutation and response:

medium📝 query result Q4 of 15
GraphQL - Mutations

Given this mutation and response:
mutation { deleteUser(id: "5") { success message } }
Response:
{ "data": { "deleteUser": { "success": true, "message": "User deleted" } } }
What is the value of success?

Atrue
Bfalse
Cnull
Dundefined
Step-by-Step Solution
Solution:
  1. Step 1: Read the mutation response

    The response shows 'success' as true inside the 'deleteUser' object.
  2. Step 2: Identify the value of success

    It is explicitly true, indicating deletion succeeded.
  3. Final Answer:

    true -> Option A
  4. Quick Check:

    Success value in response = true [OK]
Quick Trick: Check response data object for success field value [OK]
Common Mistakes:
  • Confusing success with message content
  • Assuming false without checking response
  • Ignoring nested data structure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes