Build(deps): Bump strawberry-graphql[fastapi] from 0.230.0 to 0.233.0
Bumps strawberry-graphql[fastapi] from 0.230.0 to 0.233.0.
Release notes
Sourced from strawberry-graphql[fastapi]'s releases.
🍓 0.233.0This release refactors our Federation integration to create types using Strawberry directly, instead of using low level types from GraphQL-core.
The only user facing change is that now the
info
object passed to theresolve_reference
function is thestrawberry.Info
object instead of the one coming coming from GraphQL-core. This is a breaking change for users that were using theinfo
object directly.If you need to access the original
info
object you can do so by accessing the_raw_info
attribute.import strawberry @strawberry.federation.type(keys=["upc"]) class Product: upc: str @classmethod def resolve_reference(cls, info: strawberry.Info, upc: str) -> "Product": # Access the original info object original_info = info._raw_info return Product(upc=upc)
Releases contributed by
@patrick91
via #3525
🍓 0.232.2This release fixes an issue that would prevent using lazy aliased connections to annotate a connection field.
For example, this should now work correctly:
# types.py @strawberry.type class Fruit: ... FruitConnection: TypeAlias = ListConnection[Fruit]
# schema.py </tr></table>
... (truncated)
Changelog
Sourced from strawberry-graphql[fastapi]'s changelog.
0.233.0 - 2024-05-29
This release refactors our Federation integration to create types using Strawberry directly, instead of using low level types from GraphQL-core.
The only user facing change is that now the
info
object passed to theresolve_reference
function is thestrawberry.Info
object instead of the one coming coming from GraphQL-core. This is a breaking change for users that were using theinfo
object directly.If you need to access the original
info
object you can do so by accessing the_raw_info
attribute.import strawberry @strawberry.federation.type(keys=["upc"]) class Product: upc: str @classmethod def resolve_reference(cls, info: strawberry.Info, upc: str) -> "Product": # Access the original info object original_info = info._raw_info return Product(upc=upc)
Contributed by Patrick Arminio via [PR #3525](strawberry-graphql/strawberry#3525)
0.232.2 - 2024-05-28
This release fixes an issue that would prevent using lazy aliased connections to annotate a connection field.
For example, this should now work correctly:
# types.py @strawberry.type class Fruit: ... FruitConnection: TypeAlias = ListConnection[Fruit] </tr></table>
... (truncated)
Commits
-
7092c18
Release🍓 0.233.0 -
9c45983
Implement federation fields and types using strawberry (#3525) -
5ee16f5
Remove TWEET.md -
d721eb3
Release🍓 0.232.2 -
63134b3
fix: Fix lazy aliased connections type resolution (#3524) -
4ba2379
Tweak Schema basics and Type hints docs (#3523) -
4158def
Add annotations to private functions (#3520) -
cdbba41
[pre-commit.ci] pre-commit autoupdate (#3518) -
648bdcc
docs: deprecating fields (#3519) -
f683b4d
Remove TWEET.md - Additional commits viewable in compare view