网页
综合
更新时间 2026-11-07 16:26:57
Strawberry GraphQL @ 0.341.2 | 🍓 Strawberry GraphQL
自动蜘蛛
strawberry.rocks
正文约 644 字
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 https://github.com/strawberry-graphql/strawberry/pull/4797
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。