Skip to content

0.341.2

Choose a tag to compare

@botberry botberry released this 07 Nov 16:27
· 15 commits to main since this release

This release fixes strawberry.Maybe fields on output types: a Maybe field on
a @strawberry.type or @strawberry.interface, or a resolver returning one,
also inside a list like list[strawberry.Maybe[str]], now raises
MaybeFieldOnOutputTypeError when the schema is built, instead of silently
serializing the strawberry.Some as its repr, like "Some('Ada')". Maybe is
for inputs: make the field nullable instead.

@strawberry.pydantic.type and @strawberry.pydantic.interface raise the same
error for Maybe fields, instead of MaybeFieldError.

This release was contributed by @patrick91 in #4797