Bird
0
0

Which GraphQL type is used to represent a true or false value?

easy📝 Conceptual Q2 of 15
GraphQL - Schema Definition Language (SDL)
Which GraphQL type is used to represent a true or false value?
AString
BBoolean
CInt
DFloat
Step-by-Step Solution
Solution:
  1. Step 1: Recall GraphQL scalar types

    GraphQL has built-in scalar types like String, Int, Float, and Boolean.
  2. Step 2: Identify the type for true/false

    The Boolean type represents true or false values.
  3. Final Answer:

    Boolean -> Option B
  4. Quick Check:

    True/False type = Boolean = B [OK]
Quick Trick: Boolean type stores true or false values [OK]
Common Mistakes:
  • Choosing String for true/false
  • Confusing Int with Boolean
  • Using Float for logical values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GraphQL Quizzes