Logo
GitHubDiscord

@semanticNonNull

EXPERIMENTAL

@semanticNonNull allows marking fields that are never null unless there is a matching error in the `errors` array. This allows some tools to generate those types as non-null and make the client code simpler

More info: https://specs.apollo.dev/nullability/v0.4/#@semanticNonNull

Projects

Project Name Supported Since Note
Apollo Client N/A
Apollo Kotlin 4.0.0
Apollo Router -
Apollo Server ?

Know the status of this feature? Let us know!

Apollo iOS -
Domain Graph Service (DGS) Framework ?

Know the status of this feature? Let us know!

GraphQL Code Generator 4.6.0

pr, release

GraphQL Java ?

Know the status of this feature? Let us know!

GraphQL Kotlin ?

Know the status of this feature? Let us know!

GraphQL Yoga ?

Know the status of this feature? Let us know!

GraphQL.js N/A

@semanticNonNull is not a built-in directive and will probably never be. It's only used as a transitional phase while tools migrate to onError: NULL.

GraphiQL ?

Know the status of this feature? Let us know!

Grats 0.0.12

doc, commit

Hot Chocolate ?

Know the status of this feature? Let us know!

Relay 18.0.0

doc

Spring for GraphQL ?

Know the status of this feature? Let us know!

gql.tada ?

Know the status of this feature? Let us know!

urql ?

Know the status of this feature? Let us know!