Skip to content

Commit a1d1145

Browse files
committed
update changeset
1 parent f059e05 commit a1d1145

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.changeset/green-badgers-work.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,15 @@ Abort GraphQL execution when HTTP request is canceled.
66

77
The execution of subsequent GraphQL resolvers is now aborted if the incoming HTTP request is canceled from the client side.
88
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)

0 commit comments

Comments
 (0)