Bird
0
0

Find the mistake in this query: { search(text: "apple", limit: "10") { id name } }

medium📝 Debug Q7 of 15
GraphQL - Queries
Find the mistake in this query: { search(text: "apple", limit: "10") { id name } }
AMissing argument name for limit
BQuery must not have arguments
CText argument should be a number
DLimit value should not be a string
Step-by-Step Solution
Solution:
  1. Step 1: Check argument value types

    Limit usually expects a number, not a string.
  2. Step 2: Identify incorrect string usage

    Limit is passed as "10" (string), should be 10 (number) without quotes.
  3. Final Answer:

    Limit value should not be a string -> Option D
  4. Quick Check:

    Numeric arguments must not be quoted [OK]
Quick Trick: Pass numbers without quotes for numeric arguments [OK]
Common Mistakes:
  • Passing numbers as strings
  • Confusing argument names
  • Thinking all arguments accept strings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes