Bird
0
0

Which of the following is a valid enum value name in GraphQL?

easy📝 Conceptual Q2 of 15
GraphQL - Schema Definition Language (SDL)
Which of the following is a valid enum value name in GraphQL?
Aactive-status
BactiveStatus
C123ACTIVE
DACTIVE_STATUS
Step-by-Step Solution
Solution:
  1. Step 1: Recall enum value naming rules

    Enum values must be uppercase letters and underscores, no lowercase or special characters.
  2. Step 2: Check each option

    ACTIVE_STATUS is uppercase with underscore, valid; others have lowercase, digits at start, or hyphens.
  3. Final Answer:

    ACTIVE_STATUS -> Option D
  4. Quick Check:

    Enum value names = uppercase + underscores [OK]
Quick Trick: Enum values use uppercase letters and underscores only [OK]
Common Mistakes:
  • Using lowercase letters
  • Starting with digits
  • Including hyphens or special chars

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes