Skip to content

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

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],
)

Releases contributed by @​gazorby via #3213

🍓 0.218.1

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.

Releases contributed by @​patrick91 via #3356

🍓 0.218.0

This release adds a new method get_fields on the Schema class. You can use get_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

Merge request reports