Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about defer/stream being v17 #4289

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion website/pages/defer-stream.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
title: Enabling Defer & Stream
---

The `@defer` and `@stream` directives are not enabled by default. In order to use these directives, you must add them to your GraphQL Schema and use the `experimentalExecuteIncrementally` function instead of `execute`.
import { Callout } from 'nextra/components'

<Callout type="info" emoji="ℹ️">
These exports are only availble in v17 and beyond.
JoviDeCroock marked this conversation as resolved.
Show resolved Hide resolved
</Callout>

The `@defer` and `@stream` directives are not enabled by default.
In order to use these directives, you must add them to your GraphQL Schema and
use the `experimentalExecuteIncrementally` function instead of `execute`.

```js
import {
Expand Down
Loading