Q5: What are the built-in scalar types in GraphQL?
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:trueorfalse.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?