Bump strawberry-graphql[fastapi] from 0.271.2 to 0.273.0
Bumps strawberry-graphql[fastapi] from 0.271.2 to 0.273.0.
Release notes
Sourced from strawberry-graphql[fastapi]'s releases.
🍓 0.273.0Starting with this release, Strawberry will throw an error if one of your input types tries to inherit from one or more interfaces. This new error enforces the GraphQL specification that input types cannot implement interfaces.
The following code, for example, will now throw an error:
import strawberry @strawberry.interface class SomeInterface: some_field: str @strawberry.input class SomeInput(SomeInterface): another_field: int
Releases contributed by
@scratchmex
via #1254
🍓 0.272.1This release modifies export-schema cli to include an EOF newline if --output option is provided. This allows better review in github.com for the generated schema files.
Releases contributed by
@yunkaiz
via #3896
🍓 0.272.0This release features a dedicated extension to disable introspection queries. Disabling introspection queries was already possible using the
AddValidationRules
extension. However, using this new extension requires fewer steps and makes the feature more discoverable.Usage example:
import strawberry from strawberry.extensions import DisableIntrospection @strawberry.type class Query: @strawberry.field def hello(self) -> str: return "Hello, world!" schema = strawberry.Schema( Query, </tr></table>
... (truncated)
Changelog
Sourced from strawberry-graphql[fastapi]'s changelog.
0.273.0 - 2025-06-10
Starting with this release, Strawberry will throw an error if one of your input types tries to inherit from one or more interfaces. This new error enforces the GraphQL specification that input types cannot implement interfaces.
The following code, for example, will now throw an error:
import strawberry @strawberry.interface class SomeInterface: some_field: str @strawberry.input class SomeInput(SomeInterface): another_field: int
Contributed by Ivan Gonzalez via [PR #1254](strawberry-graphql/strawberry#1254)
0.272.1 - 2025-06-10
This release modifies export-schema cli to include an EOF newline if --output option is provided. This allows better review in github.com for the generated schema files.
Contributed by Yunkai Zhou via [PR #3896](strawberry-graphql/strawberry#3896)
0.272.0 - 2025-06-10
This release features a dedicated extension to disable introspection queries. Disabling introspection queries was already possible using the
AddValidationRules
extension. However, using this new extension requires fewer steps and makes the feature more discoverable.Usage example:
import strawberry from strawberry.extensions import DisableIntrospection @strawberry.type </tr></table>
... (truncated)
Commits
-
5eae93a
Release🍓 0.273.0 -
fae9c2d
feat(interface): input type cannot inherit an interface type (#1254) -
d999936
Make extension examples runnable (#3897) -
0b68daf
Fix assertions, typos, and formatting (#3894) -
decb804
Add an example query to the DisableIntrospection docs (#3898) -
279a31d
Release🍓 0.272.1 -
fb3fd32
Modify export_schema cli to include an extra EOF newline when --output option... -
1cba4f5
Fix CHANGELOG.md -
0c3f02f
Release🍓 0.272.0 -
bffb448
Add disable introspection extension (#3895) - See full diff in compare view