At a glance
- Project
- GraphQL Spec
- Identifier
- #1163
- Stage
- RFC 1 / Proposal
- Champion
- @benjie
- Updated
- 2026-10-05
- Latest activity
- Top comment edited on
- Source
- Pull request
- Related RFCs
- #1065#1153
Pull request description
This is a rewrite of:
- #1153
Service capabilities has been split into:
- #1208
Depending on the order that these are merged, whichever is merged later should add the relevant service capabilities for error behaviors (each are optional):
graphql.onError: indicates that this service accepts and honors theonErrorrequest propertygraphql.defaultErrorBehavior: one ofPROPAGATE,NULLorABORT. Must be set unless the default error behavior isPROPAGATE. Allows creating a new service which uses a different error behavior from the outset. Changing this once a service is in production would be a breaking change.- Per the working group on 2026-08-06 we will forever have PROPAGATE as the default error behavior, so this capability has been removed. But worry not! The proposal is that the
onErrorvalue to use can be incorporated into the trusted documents to save you precious network bytes.
- Per the working group on 2026-08-06 we will forever have PROPAGATE as the default error behavior, so this capability has been removed. But worry not! The proposal is that the
Replaces:
- #1050
- #1145
- #1153
GraphQL.js implementation:
Please see this (slightly outdated) 60 second video on the motivation for this PR (the last few seconds of the video also covers "transitional non-null" which is a separate concern).
As agreed at the nullability working group, disabling error propagation is the future of error handling in GraphQL. Error propagation causes a number of issues, but chief among them are:
- It destroys useful data in the response.
- It makes it unsafe to store resulting data in normalized stores.
Clients such as Relay do not want error propagation to be a thing.
This has traditionally resulted in schema design best practices advising using nullable in positions where errors were expected, even if null was never a semantically valid value for that position. And since errors can happen everywhere, this has lead to an explosion of nullability and significant pain on the client side with developers having to do seemingly unnecessary null checks in loads of positions, or worse - unsafely bypassing the type safety.
The reason that GraphQL does error propagation is to keep it's "not null" promise in the event that an error occurs (and is replaced with null due to the way GraphQL responses are structured and limitations in JSON) in a non-nullable position.
It doesn't take much code on the client to prevent the client reading a null that relates to an error, graphql-toe can be used with almost any JavaScript or TypeScript based GraphQL client (not Relay, but it has @throwOnFieldError that you can use instead) and achieves this in 512 bytes gzipped - and that's with a focus on performance rather than bundle size.
This PR allows the client to take responsibility for error handling by specifying onError: "NULL" as part of the GraphQL request, and thereby turns off error propagation behavior. This is also set as the recommended default for future schemas.
With clients responsible for error handling, we no longer need to factor the possibility of whether something can error or not into its nullability, meaning we can use the not-null ! to indicate all the positions in the schema for which null is not a semantically valid value - i.e. the underlying resource will never be a legitimate null.
The end result:
- true nullability indicated in schema - no more thinking about where errors are likely
- fewer null checks on clients
- clients can leverage their native error handling capabilities such as try/catch or
<ErrorBoundary /> - safe to store errored responses into normalized stores
I've also included onError: "HALT" in this proposal. We've discovered that there's a small but significant class of clients out there, mostly ad-hoc scripts, that throw away the entire response when any error occurs. By codifying this into the spec we make it easier to implement these clients, and we allow the server to halt processing the rest of the request unnecessarily.
As noted by @revangen in this comment:
I've also included onError:
"ABORT""HALT" in this proposal.Appreciate this being included. For Shopify's public Admin GraphQL API, we have a mix of scenarios that result in a partial success response and only error response. Having been around for 8+ years, we are reluctant at times to change its behaviour to favour partial responses as we don't control majority of clients. Providing clients a way to specify the server's behaviour provides a migration path should clients care about partial responses.
Timeline
August 2026
- Top comment edited on by benjie
- 2 commits pushed on
- @benjie committed "Remove the concept of a default error behavior"
- @benjie committed "Less awkward wording, per Lee"
- Discussed in GraphQL WG
The GraphQL working group meeting focused on several key specification updates and discussions. Benjie presented updates to the GraphQL over HTTP spec, proposing to change "recommended" to "should" in the documentation while updating RFC references, with the working group discussing whether to merge this change before the planned September release. The group had an extensive discussion about the on-error null proposal, where Benjie proposed adding a path non-null property to enable clients to handle errors locally without requiring schema knowledge, leading to debate about default behavior settings and implementation approaches. Martin provided updates on grants available and the need for new tutorial submissions, while also presenting a simple website tagline update for AI language support. The conversation ended with Michael proposing to rename the Composite Schema spec to GraphQL Federation spec to better reflect its evolution and alignment with Apollo Federation, which received strong support from the group.
Zoom summary · GraphQL WG · 2026-08-06Next StepsBenjie: Update the on-error proposal documentation (RFCs and blog post) to include the new "pathNonNull" property for schemaless clients.
Zoom summary · GraphQL WG · 2026-08-06The team discussed merging several pull requests, with some members experiencing GitHub access issues. Leebyron led the meeting introduction where team members introduced themselves, including welcoming new member Miguel. The agenda was reviewed, covering upcoming topics including GraphQL over HTTP spec updates, spec release cuts, grant initiatives, and discussions about GraphQL taglines, error handling, and schema specifications.
Zoom summary · GraphQL WG · 2026-08-06Benjie presented an updated proposal for the on-error null feature, explaining how it would allow moving error propagation from server to client while making normalized caches safer. The discussion focused on whether to make this a default behavior or keep it as an opt-in, with Pascal emphasizing the importance of not changing defaults once implemented. The group agreed that new clients like Urkel and Apollo should default to using on-error null when supported by the server, while maintaining backward compatibility for older clients. Michael also proposed renaming the Composite Schema spec to GraphQL Federation spec to better reflect its evolution and alignment with Apollo Federation.
Zoom summary · GraphQL WG · 2026-08-06 - Top comment edited on by benjie
- 6 commits pushed on
- @benjie committed "Merge branch 'main' into error-behavior2"
- @benjie committed "Remove service capabilities; now in #1208"
- @benjie committed "Add pathNonNull so clients can reproduce propagation locally"
- @benjie committed "Add pathNonNull to examples"
- @benjie committed "Better wording"
- @benjie committed "No capabilities"
January 2026
- Discussed in GraphQL WG
Current status: RFC1 via original Error behaviors/service capabilities PR
Meeting notes · GraphQL WG · 2026-01-15
November 2025
- On the agenda for Composite Schemas WG
5 listed attendees · 1 agenda item · 1 linked RFC
- Service Definition: [https://github.com/graphql/graphql-spec/pull/1163] (15m, @michaelstaib) #1163
- 4 commits pushed on
- @benjie committed "Remove unnecessary negative lookahead"
- @benjie committed "Lee says empty braces are okay here!"
- @benjie committed "Merge branch 'main' into error-behavior2"
- @benjie committed "Sync syntax with Lee's suggestions"
- Discussed in GraphQL WG
The Apollo Working Group meeting covered TSC elections, grants, and updates to the GraphQL specification, including discussions on object identification and fragment usage. The team agreed on implementing a regular release schedule and discussed various GraphQL capabilities, including error handling modes and schema introspection. They also reviewed specifications for service capabilities and stream features, while addressing questions about back compatibility and runtime introspection.
Zoom summary · GraphQL WG · 2025-11-06Next StepsLee: Review capabilities spec PR
Zoom summary · GraphQL WG · 2025-11-06Next StepsMartin/Benjie: Build GraphQL.js implementation for capabilities
Zoom summary · GraphQL WG · 2025-11-06Next StepsCommunity: Implement capabilities in other languages
Zoom summary · GraphQL WG · 2025-11-06Next StepsCommunity: Test capabilities with real-life use cases
Zoom summary · GraphQL WG · 2025-11-06Next StepsBenjie: Consider splitting capabilities PR into two parts
Zoom summary · GraphQL WG · 2025-11-06GraphQL Capabilities and Extensions
The meeting focused on discussing GraphQL capabilities and related specifications. Martin presented slides on capabilities, including error handling modes and their implementation across different languages. Benjie proposed a new extension for schema introspection. The group discussed the need for a GraphQL.js implementation and reviewed a pull request for service capabilities. Lee and Benjie addressed questions about back compatibility and runtime introspection. The team agreed to split the service capabilities feature into two parts: operation descriptions and error behaviors. Rob provided an update on the defer and stream specifications, highlighting new examples in the appendix. The conversation ended with Benjie suggesting improvements to the schema's handling of deprecated fields.
Zoom summary · GraphQL WG · 2025-11-06
October 2025
- @benjie committed "Fix incorrect prefix" on
August 2025
- 9 commits pushed on
- @benjie committed "Overhaul and introduce SDL syntax for service capabilities"
- @benjie committed "Update syntax"
- @benjie committed "Simplify"
- @benjie committed "Update Name syntax"
- @benjie committed "Clarification"
- @benjie committed "Minor tweaks"
- @benjie committed "Clarify the interaction of onError:HALT and subscriptions"
- @benjie committed "Fix grammar"
- @benjie committed "Spelling"
July 2025
- Discussed in GraphQL WG
GraphQL Error Propagation Discussion
The team discussed implementing a new error propagation behavior in GraphQL, where errors would be thrown instead of propagated. Leebyron expressed concerns about removing information and the potential impact on telemetry, while Martin questioned if it was too late to implement this change. Benjie explained that while 100% adoption of no-error propagation might not be achievable, the throw-on-error pattern is already useful and being used in practice. The team debated whether the benefits of accurate error handling justified the complexity of implementation, ultimately concluding that while it might not be crucial for most cases, it could provide value for developers who need to handle errors more precisely.
Zoom summary · GraphQL WG · 2025-07-17Leebyron supported the idea of using well-known URLs for documentation, and Benjie outlined several use cases including websocket URLs, error propagation behaviors, and trusted document methods.
Zoom summary · GraphQL WG · 2025-07-17 - Top comment edited on by benjie
- 2 commits pushed on
- @benjie committed "Merge branch 'main' into error-behavior2"
- @benjie committed "Change NO_PROPAGATE to NULL"
- On the agenda for GraphQL WG
8 listed attendees · 8 agenda items · 7 linked RFCs
- Editorial: Define 'execution' as in 'before execution begins' (10m, Benjie)
- RFC2: Schema coordinates (5m, Mark / Martin) #794
- RFC1: Fix CoerceArgumentValues() hasValue (10m, Benjie) #1056
- RFC1: List coercion algorithm (5m, Benjie) #1058
- RFC0: Incorporate meta-fields into ExecuteCollectedFields (10m, Benjie) #1177
- Defer/Stream updates (15m, Rob) DeferStream
- Discussion: Remove fragmentSpreadName from visitedFragments after visit (10m, Benjie) #1045
- Discussion: service capabilities syntax (10m, Benjie) #1163
June 2025
- Discussed in GraphQL WG
The meeting began with introductions and agenda discussion, focusing on topics related to AI and GraphQL, including marketing strategies and upcoming conferences. The team reviewed several GraphQL proposals and specifications, discussing changes to HTTP status codes, error handling, and schema coordinates, while also addressing updates to execution algorithms and type systems. The conversation ended with discussions about the GraphQL specification cut date and service capabilities, with the team agreeing to aim for a July 1st cut date while advancing nullability features and composite schemas.
Zoom summary · GraphQL WG · 2025-06-05Next StepsTSC Members: Review and provide feedback on the service capabilities and error handling PR before next meeting
Zoom summary · GraphQL WG · 2025-06-05Next StepsBenjie: Update the service capabilities PR with feedback from composite schemas working group
Zoom summary · GraphQL WG · 2025-06-05Next StepsComposite Schemas Working Group: Provide input on the service capabilities feature requirements
Zoom summary · GraphQL WG · 2025-06-05The team discussed several specification changes related to execution and error handling. Benjie and Lee agreed to rename algorithms to clarify their purpose, with "perform" being preferred over "execute" to maintain consistency with verb-noun pairings. They decided to update algorithm names like "perform query" and "perform mutation" to improve clarity. Lee suggested adding a high-level overview of the execution process near the beginning of the specification to help readers understand the sequence of operations. The team also addressed the need to disable error propagation in certain cases, with Benjie mentioning that the Nullability working group was exploring options for implementing this feature.
Zoom summary · GraphQL WG · 2025-06-05Service Capabilities Proposal Discussion
The team discussed a proposal for service capabilities, which would allow servers to indicate supported features like fragment arguments and error handling through a key-value store using reverse DNS identifiers. Benjie explained that this would complement the existing type system and introspection capabilities, particularly for features that cannot be derived from introspection. The group agreed that this feature would be valuable for tooling and client generation, with Michael noting that it has been discussed for four years. While there was some discussion about implementing it as a directive in the SDL, Benjie preferred to keep it as a service-specific feature for now, with the possibility of adding SDL syntax in the future.
Zoom summary · GraphQL WG · 2025-06-05Michael highlighted the importance of including capabilities in the specification, and the team agreed to advance the nullability RFC to merge in two weeks, with composite schemas to be addressed separately.
Zoom summary · GraphQL WG · 2025-06-05
May 2025
- @benjie committed "Update spec/Section 4 -- Introspection.md" on
- On the agenda for Nullability WG
- Top comment edited on by benjie
- 7 commits pushed on
- @benjie committed "Rework capabilities"
- @benjie committed "Use a definition"
- @benjie committed "Reorder"
- @benjie committed "Reword"
- @benjie committed "Editorial"
- @benjie committed "More editorial"
- @benjie committed "More editorial"
- 4 commits pushed on
- @benjie committed "ABORT -> HALT"
- @benjie committed "Start speccing out the capabilities system"
- @benjie committed "Add a number of basic capabilities"
- @benjie committed "Move default error behavior to the service"
- Discussed in GraphQL WG
The team reviewed several agenda items including executable definitions and error propagation, with Steven presenting an RFC for adding descriptions to executable document definitions that was moved to RFC 2 and Stephen volunteering to champion it. The group discussed implementing a capability system for GraphQL services to indicate supported features and error behaviors, with Benjie and Lee debating different approaches and naming conventions while agreeing to keep the initial implementation simple. The team also discussed the design of a service capabilities system and naming conventions for GraphQL concepts, with Benjie planning to write up a version focused on error propagation capabilities and Lee agreeing to review the proposal further.
Zoom summary · GraphQL WG · 2025-05-15Next StepsBenjie to update the RFC for error propagation with the new capability system approach discussed.
Zoom summary · GraphQL WG · 2025-05-15Next StepsBenjie to explore implementing the new error propagation behavior as an optional appendix to the spec.
Zoom summary · GraphQL WG · 2025-05-15Next StepsBenjie to send Lee a message with additional thoughts on the nullability and error propagation implementation.
Zoom summary · GraphQL WG · 2025-05-15The team discussed several agenda items, including executable definitions and error propagation. Steven presented an RFC for adding descriptions to executable document definitions, which the group agreed to move to RFC 2. Stephen volunteered to take over as champion for this RFC. The team decided to prioritize getting the GraphQL.js PR merged and for Steven to report progress at the next working group meeting. Lee suggested creating an RFC tracker to help implementers follow along with upcoming changes. Benjie shared a personal RFC tracker, but the group agreed a more official system would be needed in the future.
Zoom summary · GraphQL WG · 2025-05-15GraphQL Capability System DiscussionBenjie proposed a capability system for GraphQL services to indicate supported features and error behaviors. Lee expressed concerns about overcomplicating the solution and suggested using introspection to determine capabilities. They discussed the pros and cons of different approaches, including a flat list of strings and key-value pairs. The group agreed to keep the initial implementation simple, focusing on the minimum viable solution to address their current needs.
Zoom summary · GraphQL WG · 2025-05-15GraphQL Service Capabilities DesignBenjie and Lee discussed the design of a service capabilities system for GraphQL. They agreed to use a list of capability objects with names and optional values, where the absence of a value would indicate a Boolean flag. They decided to use a domain-based naming convention for capabilities, with "graphql." as a prefix for internal capabilities and reverse domain notation for others. Lee suggested implementing basic validation to catch incorrect usage. They also discussed how to represent capabilities in SDL, considering a simple syntax where each service lists its capabilities. Benjie planned to write up a version focused on error propagation capabilities, which would include two main capabilities: the ability to set error behavior and the default error behavior.
Zoom summary · GraphQL WG · 2025-05-15Lee and Benjie discussed naming conventions for GraphQL concepts, particularly around the terms "field set" and "collected fields." They debated the merits of different naming approaches, with Benjie favoring "field set" due to its clarity in implementation while Lee expressed concerns about the pluralization and alignment with method names. They also touched on nullability and error propagation, with Benjie proposing a transitional approach that would allow for both new services with error propagation turned off and compatibility with existing systems. Lee agreed to review the proposal further.
Zoom summary · GraphQL WG · 2025-05-15 - Discussed in GraphQL WG
The GraphQL specification Working group discussed the deprecation of old versions of GraphQL JS, the proposal for defining a GraphQL request's response, and the clarification of the types of GraphQL responses. They also discussed the implementation of one-off features in GraphQL, Java, and GraphQL.js, the prevention of skip and include on route subscription selection sets, and the default value coercion rules. The group also discussed the need for a source of truth for built-in scalars and introspection types, the syntax for defining schemas in GraphQL, and the issue of error propagation in GraphQL.
Zoom summary · GraphQL WG · 2025-05-01Next StepsBenjie to continue exploring options for disabling error propagation via a request parameter and seek input from the group.
Zoom summary · GraphQL WG · 2025-05-01Next StepsLee to explore making error propagation behavior a property of the service rather than the schema.
Zoom summary · GraphQL WG · 2025-05-01Benjie proposed enabling a naked version of the schema keyword, which would allow for adding a description or directives without defining the operations. This change would be a breaking syntax change, as older versions of GraphQL wouldn't be able to parse it. The main problem this change would solve is allowing for the addition of a default error behavior to an existing schema without having to define the operation types. The team discussed the value of this change, with some members questioning the need for it. Michael suggested that the symmetry with interface and union type definitions was a good reason to make this change.
Zoom summary · GraphQL WG · 2025-05-01GraphQL Error Propagation SolutionsBenjie discussed the issue of error propagation in GraphQL and proposed a solution to disable it. He suggested adding a directive to operations and using a request parameter to control error behavior. He also proposed three error behaviors: propagate, no propagate, and abort. Benjie suggested using a reserved behavior directive to specify the default error behavior in the schema. However, he acknowledged that this approach could break existing tooling. He presented alternative solutions, including using a specified type or breaking the error behavior into multiple properties. Benjie sought input on the best path forward.
Zoom summary · GraphQL WG · 2025-05-01The team discussed the implementation of error handling in GraphQL. They considered the use of a new directive, "error behavior," which would override the default error handling. The team also discussed the potential for this directive to be expressed only in introspection and not in the schema definition language (SDL). They debated whether every GraphQL client should be an error handling client and whether the "error behavior" directive should be included in the SDL. The team also discussed the issue of older versions of GraphQL.js not recognizing the "error behavior" directive, which could cause validation errors. The team agreed to fix this issue in future versions of the GraphQL client, Graphical.
Zoom summary · GraphQL WG · 2025-05-01The group discusses two main topics: error propagation in GraphQL and the naming of execution-related functions in the spec. Benjie proposes moving towards a future where error propagation is disabled by default, but still supported for certain clients. Lee and Pascal express concerns about making this a permanent schema directive and changing defaults. The group also debates renaming "execute selection set" to "execute collected fields" and incorporating Martin's work on defining execution stages. They agree to reintroduce mid-month meetings to address time constraints and prepare for the upcoming spec release.
Zoom summary · GraphQL WG · 2025-05-01
April 2025
- Pull request created on by benjie
- Top comment edited on by benjie
- 3 commits pushed on
- @benjie committed "Detail onError request parameter"
- @benjie committed "Detail introspection changes"
- @benjie committed "Define the directive"
- Advanced to RFC 1 on by benjie
- On the agenda for Nullability WG
5 listed attendees · 3 agenda items · 2 linked RFCs