GraphQL - Schema Definition Language (SDL)Why does GraphQL enforce enum values to be uppercase and not allow lowercase or mixed case?ABecause lowercase enum values cause runtime errorsBTo distinguish enum values from field names and improve readabilityCTo match JSON naming conventionsDBecause GraphQL only supports uppercase stringsCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand GraphQL naming conventionsUppercase enum values help distinguish them from fields and improve schema clarity.Step 2: Evaluate other optionsLowercase does not cause errors; JSON allows mixed case; GraphQL supports all strings.Final Answer:To distinguish enum values from field names and improve readability -> Option BQuick Check:Uppercase enum values improve clarity and distinction [OK]Quick Trick: Uppercase enum values improve schema clarity and avoid confusion [OK]Common Mistakes:Thinking lowercase causes errorsConfusing with JSON rulesBelieving GraphQL limits string cases
Master "Schema Definition Language (SDL)" in GraphQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More GraphQL Quizzes GraphQL Basics and Philosophy - GraphQL Playground and tools - Quiz 9hard Mutations - Delete mutation pattern - Quiz 15hard Mutations - Mutation syntax - Quiz 13medium Queries - Why queries request specific data - Quiz 3easy Queries - Query arguments - Quiz 7medium Schema Definition Language (SDL) - Scalar types (String, Int, Float, Boolean, ID) - Quiz 12easy Schema Definition Language (SDL) - List types - Quiz 10hard Schema Definition Language (SDL) - List types - Quiz 9hard Schema Definition Language (SDL) - Required fields with non-null (!) - Quiz 6medium Type Relationships - One-to-many relationships - Quiz 7medium