Skip to content

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.0

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

Releases contributed by @​patrick91 via #3417

🍓 0.222.0

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:

... (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

Merge request reports