Strawberry GraphQL @ 0.285.0

Released

This release removes support for Apollo Federation v1 and improves Federation v2 support with explicit version control and new directives.

Breaking Changes

Migration

If you were using enable_federation_2=True

Remove the parameter:

# Before
schema = strawberry.federation.Schema(query=Query, enable_federation_2=True)
 
# After
schema = strawberry.federation.Schema(query=Query)

If you were using Federation v1

You must migrate to Federation v2. See the breaking changes documentation for detailed migration instructions.

New Features

schema = strawberry.federation.Schema(
    query=Query, federation_version="2.5"  # Specify a specific version if needed
)

Releases contributed by @patrick91 via #4045