pypi strawberry-graphql 0.298.0
🍓 0.298.0

latest releases: 0.299.0, 0.298.1
14 hours ago

Remove deprecated types parameter from strawberry.union(), deprecated since 0.191.0.

You can run strawberry upgrade annotated-union <path> to automatically migrate your code.

Migration guide

Before (deprecated):

import strawberry

MyUnion = strawberry.union("MyUnion", types=(TypeA, TypeB))

After:

from typing import Annotated
import strawberry

MyUnion = Annotated[TypeA | TypeB, strawberry.union("MyUnion")]

Releases contributed by @Ckk3 via #4220

Don't miss a new strawberry-graphql release

NewReleases is sending notifications on new releases.