graphql / graphql-spec

GraphQL is a query language and execution engine tied to any backend service.
https://spec.graphql.org
14.31k stars 1.13k forks source link

[RFC] Directive proposal for opting out of null bubbling #1050

Open benjie opened 1 year ago

benjie commented 1 year ago

This PR builds on #1048, so you should see the diff from that PR:

https://github.com/benjie/graphql-spec/compare/asterisk...benjie:graphql-spec:no-null-bubbling

This introduces a directive on operations that disables the null/error propagation behavior by treating all Non-Null types as if they were Null-Only-On-Error types (see #1048).

The specific name of this directive (currently @nullOnError) is open to workshopping:

This PR currently only includes a description of the directive and an example; the implementation is yet to come (hence: draft).

netlify[bot] commented 1 year ago

Deploy Preview for graphql-spec-draft ready!

Name Link
Latest commit e58ab2b36cee6186ed538f07af61cd0752d8caab
Latest deploy log https://app.netlify.com/sites/graphql-spec-draft/deploys/651e9d35c809180008a5458c
Deploy Preview https://deploy-preview-1050--graphql-spec-draft.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.