Skip to content

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

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 the resolve_reference function is the strawberry.Info object instead of the one coming coming from GraphQL-core. This is a breaking change for users that were using the info 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.2

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]
# 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 the resolve_reference function is the strawberry.Info object instead of the one coming coming from GraphQL-core. This is a breaking change for users that were using the info 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) -&gt; &quot;Product&quot;:
    # 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

Merge request reports