Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
strawberry_graphql-0.277.0-py3-none-any.whl | 2025-07-18 | 308.7 kB | |
strawberry_graphql-0.277.0.tar.gz | 2025-07-18 | 211.5 kB | |
0.277.0 source code.tar.gz | 2025-07-18 | 1.2 MB | |
0.277.0 source code.zip | 2025-07-18 | 1.6 MB | |
README.md | 2025-07-18 | 877 Bytes | |
Totals: 5 Items | 3.3 MB | 1 |
This release adds experimental support for GraphQL's @defer
and @stream
directives, enabling incremental delivery of response data.
Note: this only works when using Strawberry with graphql-core>=3.3.0a9
.
Features
@defer
directive: Allows fields to be resolved asynchronously and delivered incrementally@stream
directive: Enables streaming of list fields using the newstrawberry.Streamable
typestrawberry.Streamable[T]
: A new generic type for defining streamable fields that work with@stream
Configuration
To enable these experimental features, configure your schema with:
:::python
from strawberry.schema.config import StrawberryConfig
schema = strawberry.Schema(
query=Query, config=StrawberryConfig(enable_experimental_incremental_execution=True)
)
Releases contributed by @patrick91 via [#3819]