Handling Nullability in GraphQL: Best Practices for Engineers
summary
GraphQL’s default “nullable by default” hides two different cases — network/error nulls and legitimate business (semantic) nulls — which breaks Kotlin’s non-null-by-default models and causes crashes (example: video uploads introduced no-title items that exploded generated Apollo Kotlin models). A GraphQL subworking group proposes concrete syntax and flags (examples: asterisk and tability) plus client/server negotiation; documentation and schema-level typing are practical mitigations. Outcome: prototypes and proposals exist but no universal standard yet, so handle nulls explicitly in schema and client code.
AI-written summary · about
