Types define the structure of data in a GraphQL schema.
They specify what fields exist and what type of data each field returns.
Object types represent real-world entities and contain fields.
type User {
id: ID!
name: String!
age: Int
}
User is an object type! means the field is non-nullableScalars represent primitive values.
Built-in scalars:
IntFloatStringBooleanIDExample: