Q5: What are the built-in scalar types in GraphQL?

Difficulty:EasyTopic:Types

GraphQL includes five built-in primitive scalar types:

  • Int: Signed 32‐bit integer.
  • Float: Signed double-precision fractional value.
  • String: UTF‐8 character sequence.
  • Boolean: true or false.
  • ID: Unique identifier serialized as a String, often used to re-fetch objects.
Key Takeaways
  • GraphQL provides 5 scalar primitives: Int, Float, String, Boolean, and ID.
Knowledge Check

Which of the following is NOT a built-in GraphQL scalar type?