Directive proposal for opting out of null bubbling
At a glance​
- Identifier: #1050
- Stage: RFC0: Strawman
- Champion: @benjie
- PR: Directive proposal for opting out of null bubbling
- Related:
- #1048 (Null-Only-On-Error / Semantically-Non-Null type (asterisk))
Timeline​
- Spec PR created on 2023-10-05 by benjie
- Commit pushed: Directive proposal for opting out of null bubbling on 2023-10-05 by @benjie
- 3 commits pushed on 2023-10-04:
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:
@noBubblesPlz
😉 or@tepid
🤣@disableNullPropagation
/@disableErrorPropagation
/@noNullPropagation
/@noPropagation
/ etc@localErrors
@dontHandleErrorsForMeIKnowWhatImDoing
- {your suggestion here}
This PR currently only includes a description of the directive and an example; the implementation is yet to come (hence: draft).