Bird
0
0

Find the mistake in this GraphQL query:

medium📝 Debug Q7 of 15
GraphQL - Basics and Philosophy
Find the mistake in this GraphQL query:
query { posts { title, content } }
ACommas are not allowed between fields
BThe query keyword is missing
CField names must be capitalized
DBraces should be replaced with parentheses
Step-by-Step Solution
Solution:
  1. Step 1: Review field list syntax

    GraphQL fields are listed without commas between them.
  2. Step 2: Check other syntax elements

    The query keyword is present, field names can be lowercase, and braces are correct.
  3. Final Answer:

    Commas are not allowed between fields -> Option A
  4. Quick Check:

    No commas between fields in GraphQL [OK]
Quick Trick: List fields without commas in GraphQL queries [OK]
Common Mistakes:
  • Adding commas between fields
  • Removing the query keyword
  • Using parentheses instead of braces

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes