Skip to content

Commit

Permalink
Add note about defer/stream being v17 (graphql#4289)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored and yaacovCR committed Dec 3, 2024
1 parent fe472fd commit 4eeb857
Showing 1 changed file with 9 additions and 1 deletion.
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 available in v17 and beyond.
</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

0 comments on commit 4eeb857

Please sign in to comment.