Upstream Cancellation
This feature enables you to cancel the upstream HTTP requests when the client cancels the downstream GraphQL request. This can be useful when you want to save resources on your server and the services.
There is also
Execution Cancellation that stops
the execution, but it doesn’t stop ongoing HTTP requests. This separately allows you to stop the
HTTP requests by hooking into fetch.
Upstream Cancellation Is Enabled by Default
Upstream cancellation is enabled by default, so no configuration is needed.
Disable Upstream Cancellation
If you want to let upstream requests run to completion even after the client went away, you can disable it: