pypi strawberry-graphql 0.296.0
🍓 0.296.0

latest release: 0.296.1
7 hours ago

Remove deprecated argument name-based matching for info and directive_value parameters, deprecated since 0.159.0.

Migration guide

Parameters named info or directive_value are no longer automatically recognized by name. You must use explicit type annotations.

Before (deprecated):

@strawberry.type
class Query:
    @strawberry.field
    def example(self, info) -> str:
        return info.context["key"]

After:

@strawberry.type
class Query:
    @strawberry.field
    def example(self, info: strawberry.Info) -> str:
        return info.context["key"]

Releases contributed by @Ckk3 via #4224

Don't miss a new strawberry-graphql release

NewReleases is sending notifications on new releases.