Releases: strawberry-graphql/strawberry
🍓 0.237.1
🍓 0.237.0
🍓 0.236.2
🍓 0.236.1
This release fixes an issue where optional lazy types using | None
were
failing to be correctly resolved inside modules using future annotations, e.g.
from __future__ import annotations
from typing import Annotated, TYPE_CHECKING
import strawberry
if TYPE_CHECKING:
from types import Group
@strawberry.type
class Person:
group: Annotated["Group", strawberry.lazy("types.group")] | None
This should now work as expected.
Releases contributed by @bellini666 via #3576
🍓 0.236.0
This release changes some of the internals of Strawberry, it shouldn't
be affecting most of the users, but since we have changed the structure
of the code you might need to update your imports.
Thankfully we also provide a codemod for this, you can run it with:
strawberry upgrade update-imports
This release also includes additional documentation to some of
the classes, methods and functions, this is in preparation for
having the API reference in the documentation ✨
Releases contributed by @patrick91 via #3546
🍓 0.235.2
🍓 0.235.1
🍓 0.235.0
This release adds a new configuration to disable field suggestions in the error
response.
@strawberry.type
class Query:
name: str
schema = strawberry.Schema(
query=Query, config=StrawberryConfig(disable_field_suggestions=True)
)
Trying to query { nam }
will not suggest to query name
instead.
Releases contributed by @patrick91 via #3537
🍓 0.234.3
🍓 0.234.2
This release fixes an issue when trying to retrieve specialized type vars from a
generic type that has been aliased to a name, in cases like:
@strawberry.type
class Fruit(Generic[T]): ...
SpecializedFruit = Fruit[str]
Releases contributed by @bellini666 via #3535