Build(deps): bump strawberry-graphql[fastapi] from 0.225.1 to 0.226.0
Bumps strawberry-graphql[fastapi] from 0.225.1 to 0.226.0.
Release notes
Sourced from strawberry-graphql[fastapi]'s releases.
🍓 0.226.0Starting with this release, any error raised from within schema extensions will abort the operation and is returned to the client.
This corresponds to the way we already handle field extension errors and resolver errors.
This is particular useful for schema extensions performing checks early in the request lifecycle, for example:
class MaxQueryLengthExtension(SchemaExtension): MAX_QUERY_LENGTH = 8192 async def on_operation(self): if len(self.execution_context.query) > self.MAX_QUERY_LENGTH: raise StrawberryGraphQLError(message="Query too large") yield
Changelog
Sourced from strawberry-graphql[fastapi]'s changelog.
0.226.0 - 2024-04-17
Starting with this release, any error raised from within schema extensions will abort the operation and is returned to the client.
This corresponds to the way we already handle field extension errors and resolver errors.
This is particular useful for schema extensions performing checks early in the request lifecycle, for example:
class MaxQueryLengthExtension(SchemaExtension): MAX_QUERY_LENGTH = 8192 async def on_operation(self): if len(self.execution_context.query) > self.MAX_QUERY_LENGTH: raise StrawberryGraphQLError(message="Query too large") yield
Contributed by Jonathan Ehwald via [PR #3217](strawberry-graphql/strawberry#3217)
Commits
-
6d3e389
Release🍓 0.226.0 -
63dfc89
Improve extensions error handling (#3217) - See full diff in compare view