pypi strawberry-graphql 0.222.0
🍓 0.222.0

latest releases: 0.229.2.dev1715881453, 0.229.2.dev1715873118, 0.229.1...
one month ago

This release adds support for Apollo Federation v2.7 which includes the @authenticated, @requiresScopes, @policy directives, as well as the label argument for @override.
As usual, we have first class support for them in the strawberry.federation namespace, here's an example:

from strawberry.federation.schema_directives import Override


@strawberry.federation.type(
    authenticated=True,
    policy=[["client", "poweruser"], ["admin"]],
    requires_scopes=[["client", "poweruser"], ["admin"]],
)
class Product:
    upc: str = strawberry.federation.field(
        override=Override(override_from="mySubGraph", label="percent(1)")
    )

Releases contributed by @TygerTaco via #3420

Don't miss a new strawberry-graphql release

NewReleases is sending notifications on new releases.