Bird
0
0

Which part of a GraphQL update mutation specifies the new values to apply?

easy📝 Conceptual Q2 of 15
GraphQL - Mutations
Which part of a GraphQL update mutation specifies the new values to apply?
AThe <code>return</code> statement
BThe <code>id</code> argument
CThe <code>query</code> keyword
DThe <code>input</code> argument
Step-by-Step Solution
Solution:
  1. Step 1: Identify the role of the input argument

    The input argument contains the new data values to update the record.
  2. Step 2: Understand other arguments

    The id identifies which record to update; query and return are not parts of mutation syntax.
  3. Final Answer:

    The input argument -> Option D
  4. Quick Check:

    New values location = input argument [OK]
Quick Trick: New data goes inside the input argument [OK]
Common Mistakes:
  • Using id to pass new values
  • Confusing query with mutation syntax
  • Expecting return keyword in mutation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes