-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: forward signal to executor * chore(dependencies): updated changesets for modified dependencies * Update tests * chore(dependencies): updated changesets for modified dependencies * use fixed executor version * correct message * test: DOMException thrown from resolver * add changeset * integration tests * no global * chore(dependencies): updated changesets for modified dependencies * alpha release testing (#3208) * alpha release testing * Try the new alpha fastify * fastify subscription cleanup test * update integration guides * use proper version * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * purge changeset * remove unused import * update changeset * :shrug" * chore(dependencies): updated changesets for modified dependencies * defer stream cancelation * use helper function * make request cancellation opt-in * gbae * docs * spelling * more spelling and resources * leaks * them leaks * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
- Loading branch information
1 parent
f89a1aa
commit f775b34
Showing
52 changed files
with
1,493 additions
and
239 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
.changeset/@graphql-yoga_plugin-apollo-inline-trace-3197-dependencies.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@graphql-yoga/plugin-apollo-inline-trace': patch | ||
--- | ||
dependencies updates: | ||
- Updated dependency [`@whatwg-node/fetch@^0.9.17` | ||
↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.9.17) (from `^0.9.7`, in | ||
`peerDependencies`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'graphql-yoga': patch | ||
--- | ||
dependencies updates: | ||
- Updated dependency [`@graphql-tools/executor@^1.2.5` | ||
↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.2.5) (from `^1.2.2`, in | ||
`dependencies`) | ||
- Updated dependency [`@whatwg-node/fetch@^0.9.17` | ||
↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.9.17) (from `^0.9.7`, in | ||
`dependencies`) | ||
- Updated dependency [`@whatwg-node/server@^0.9.32` | ||
↗︎](https://www.npmjs.com/package/@whatwg-node/server/v/0.9.32) (from `^0.9.1`, in | ||
`dependencies`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
'graphql-yoga': minor | ||
--- | ||
|
||
Experimental support for aborting GraphQL execution when the HTTP request is canceled. | ||
|
||
The execution of subsequent GraphQL resolvers is now aborted if the incoming HTTP request is canceled from the client side. | ||
This reduces the load of your API in case incoming requests with deep GraphQL operation selection sets are canceled. | ||
|
||
```ts | ||
import { createYoga, useExecutionCancellation } from 'graphql-yoga' | ||
|
||
const yoga = createYoga({ | ||
plugins: [useExecutionCancellation()] | ||
}) | ||
``` | ||
|
||
[Learn more in our docs](https://graphql-yoga.com/docs/features/execution-cancelation) | ||
|
||
**Action Required** In order to benefit from this new feature, you need to update your integration setup for Fastify, Koa and Hapi. | ||
|
||
```diff | ||
- const response = await yoga.handleNodeRequest(req, { ... }) | ||
+ const response = await yoga.handleNodeRequestAndResponse(req, res, { ... }) | ||
``` | ||
|
||
Please refer to the corresponding integration guides for examples. | ||
- [Fastify](https://graphql-yoga.com/docs/integrations/integration-with-fastify#example) | ||
- [Koa](https://graphql-yoga.com/docs/integrations/integration-with-koa#example) | ||
- [Hapi](https://graphql-yoga.com/docs/integrations/integration-with-hapi#example) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.