defer
The defer configuration controls support for the @defer directive. It’s off by default.
For how deferred responses work, the transports and the limits, see Deferred Responses.
Options
enabled
- Type:
boolean - Default:
false
Turns on support for @defer. With it on, @defer is part of the public schema, and an operation
that uses it gets an incremental response: the primary part first, then the deferred fragments, sent
as multipart/mixed, SSE or WebSocket messages. Both the incrementalSpec=v0.2 format and the older
deferSpec=20220824 format are supported, picked by the Accept header.
With it off, a supergraph that defines @defer itself gets it ignored: the client gets one response
with every field.
Use limits.max_defers to cap how many @defers one operation can have.