File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,15 @@ Abort GraphQL execution when HTTP request is canceled.
6
6
7
7
The execution of subsequent GraphQL resolvers is now aborted if the incoming HTTP request is canceled from the client side.
8
8
This reduces the load of your API in case incoming requests with deep GraphQL operation selection sets are canceled.
9
+
10
+ ** Action Required** In order to benefit from this new feature, you need to update your integration setup for Fastify, Koa and Hapi.
11
+
12
+ ``` diff
13
+ - const response = await yoga.handleNodeRequest(req, { ... })
14
+ + const response = await yoga.handleNodeRequestAndResponse(req, res, { ... })
15
+ ```
16
+
17
+ Please refer to the corresponding integration guides for examples.
18
+ - [ Fastify] ( https://graphql-yoga.com/docs/integrations/integration-with-fastify#example )
19
+ - [ Koa] ( https://graphql-yoga.com/docs/integrations/integration-with-koa#example )
20
+ - [ Hapi] ( https://graphql-yoga.com/docs/integrations/integration-with-hapi#example )
You can’t perform that action at this time.
0 commit comments