Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed May 26, 2024
1 parent 3bfe4b3 commit 4191174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/docs/client/react/useQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function MyComponent() {
## Streaming responses using async generators

:::info
Since v11 we now support streaming queries when using the [`httpBatchStreamLink`](../links/httpBatchStreamLink.md).
Since v11 we now support streaming queries when using the [`httpBatchStreamLink`](../links/httpBatchStreamLink.md#generators).
:::

When returning an async generators in a query, you will:
Expand Down
2 changes: 1 addition & 1 deletion www/docs/migration/migrate-from-v10-to-v11.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { InstallSnippet } from '@site/src/components/InstallSnippet';
### Support for streaming responses over HTTP

We now support streaming mutations and queries using the [`httpBatchStreamLink`](../client/links/httpBatchStreamLink.md).
We now support streaming mutations and queries using the [`httpBatchStreamLink`](../client/links/httpBatchStreamLink.md#generators).

This means that query and mutation resolvers can either be [`AsyncGenerator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator)s with `yield` or return promises that can be deferred for later and you can use stream responses over HTTP, without using WebSockets.

Expand Down

0 comments on commit 4191174

Please sign in to comment.