Bump strawberry-graphql[fastapi] from 0.220.0 to 0.223.0
Bumps strawberry-graphql[fastapi] from 0.220.0 to 0.223.0.
Release notes
Sourced from strawberry-graphql[fastapi]'s releases.
🍓 0.223.0This release adds support for Apollo Federation in the schema codegen. Now you can convert a schema like this:
extend schema @link(url: "https://specs.apollo.dev/federation/v2.3", import: ["@key", "@shareable"]) type Query { me: User } type User @key(fields: "id") { id: ID! username: String! @shareable }
to a Strawberry powered schema like this:
import strawberry @strawberry.type class Query: me: User | None @strawberry.federation.type(keys=["id"]) class User: id: strawberry.ID username: str = strawberry.federation.field(shareable=True) schema = strawberry.federation.Schema(query=Query, enable_federation_2=True)
By running the following command:
strawberry schema-codegen example.graphql
Releases contributed by
@patrick91
via #3417
🍓 0.222.0This release adds support for Apollo Federation v2.7 which includes the
@authenticated
,@requiresScopes
,@policy
directives, as well as thelabel
argument for@override
. As usual, we have first class support for them in thestrawberry.federation
namespace, here's an example:
... (truncated)
Changelog
Sourced from strawberry-graphql[fastapi]'s changelog.
0.223.0 - 2024-03-29
This release adds support for Apollo Federation in the schema codegen. Now you can convert a schema like this:
extend schema @link(url: "https://specs.apollo.dev/federation/v2.3", import: ["@key", "@shareable"]) type Query { me: User } type User @key(fields: "id") { id: ID! username: String! @shareable }
to a Strawberry powered schema like this:
import strawberry @strawberry.type class Query: me: User | None @strawberry.federation.type(keys=["id"]) class User: id: strawberry.ID username: str = strawberry.federation.field(shareable=True) schema = strawberry.federation.Schema(query=Query, enable_federation_2=True)
By running the following command:
strawberry schema-codegen example.graphql
Contributed by Patrick Arminio via [PR #3417](strawberry-graphql/strawberry#3417)
... (truncated)
Commits
-
905b02e
Release🍓 0.223.0 -
848d00b
Add support for federation in schema codegen (#3417) -
9ef6690
Release🍓 0.222.0 -
ac20ea8
Support Federation Spec 2.7 (#3420) -
ec4cf15
Release🍓 0.221.1 -
2914950
Fix info by adding a custom__class_getitem__
(#3419) -
dbf74bb
Bump tweet action -
569240e
Release🍓 0.221.0 -
f7be08b
ImproveInfo
(#3418) -
22838db
Update extensions names - Additional commits viewable in compare view