Bump strawberry-graphql[fastapi] from 0.217.1 to 0.219.0
Bumps strawberry-graphql[fastapi] from 0.217.1 to 0.219.0.
Release notes
Sourced from strawberry-graphql[fastapi]'s releases.
🍓 0.219.0This release adds support for litestar.
import strawberry from litestar import Request, Litestar from strawberry.litestar import make_graphql_controller from strawberry.types.info import Info def custom_context_getter(request: Request): return {"custom": "context"} @strawberry.type class Query: @strawberry.field def hello(self, info: Info[object, None]) -> str: return info.context["custom"] schema = strawberry.Schema(Query) GraphQLController = make_graphql_controller( schema, path="/graphql", context_getter=custom_context_getter, ) app = Litestar( route_handlers=[GraphQLController], )
Releases contributed by
@gazorby
via #3213
🍓 0.218.1This release fixes a small issue in the GraphQL Transport websocket where the connection would fail when receiving extra parameters in the payload sent from the client.
This would happen when using Apollo Sandbox.
Releases contributed by
@patrick91
via #3356
🍓 0.218.0This release adds a new method
get_fields
on theSchema
class. You can useget_fields
to hide certain field based on some conditions, for example:
... (truncated)
Changelog
Sourced from strawberry-graphql[fastapi]'s changelog.
0.219.0 - 2024-01-24
This release adds support for litestar.
import strawberry from litestar import Request, Litestar from strawberry.litestar import make_graphql_controller from strawberry.types.info import Info def custom_context_getter(request: Request): return {"custom": "context"} @strawberry.type class Query: @strawberry.field def hello(self, info: Info[object, None]) -> str: return info.context["custom"] schema = strawberry.Schema(Query) GraphQLController = make_graphql_controller( schema, path="/graphql", context_getter=custom_context_getter, ) app = Litestar( route_handlers=[GraphQLController], )
Contributed by Matthieu MN via [PR #3213](strawberry-graphql/strawberry#3213)
0.218.1 - 2024-01-23
This release fixes a small issue in the GraphQL Transport websocket where the connection would fail when receiving extra parameters in the payload sent from the client.
This would happen when using Apollo Sandbox.
Contributed by Patrick Arminio via [PR #3356](strawberry-graphql/strawberry#3356)
... (truncated)
Commits
-
c2273ba
Release🍓 0.219.0 -
fdd06a4
Add Litestar integration (#3213) -
7830bd2
Release🍓 0.218.1 -
998a246
Ignore additional payload data in ws (#3356) -
759ca5d
Fix tests (#3355) -
f45afdf
Bump jinja2 from 3.1.2 to 3.1.3 (#3338) -
08733f8
Fix mypy issues -
5d23399
Release🍓 0.218.0 -
85fb58c
Add a way to filter fields (#3274) -
c26bb05
fix(docs): Pydantic examples are now working properly. (#3341) - Additional commits viewable in compare view