What is a “non-nullable” type in GraphQL?
a) A field that must always return a value
b) A field that can have any value, including null
c) A deprecated field
d) A field used for pagination
Answer:
a) A field that must always return a value
Explanation:
A non-nullable type in GraphQL ensures that the field must always return a value and cannot be null, improving reliability.