Join us for GraphQL Summit, October 10-12 in San Diego. Use promo code ODYSSEY for $400 off your pass.
Launch GraphOS Studio

Subgraph error inclusion

By default, the Apollo redacts the details of errors in its responses to clients. The router instead returns a default error with the following message:

Subgraph errors redacted

This redaction prevents potential leaks of sensitive information to the client. Using the include_subgraph_errors plugin, you can configure the to propagate errors to clients instead. You can do this for all subgraphs, or on a per-subgraph basis.


To configure error inclusion, add the include_subgraph_errors plugin to your YAML config file, like so:

all: true # Propagate errors from all subgraphs
products: false # Do not propagate errors from the products subgraph

Any configuration under the subgraphs key takes precedence over configuration under the all key. In the example above, errors are included from all subgraphs except the products .

Header propagation
Edit on GitHubEditForumsDiscord