Skip to content

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

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

Releases contributed by @​scratchmex via #1254

🍓 0.272.1

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.

Releases contributed by @​yunkaiz via #3896

🍓 0.272.0

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

Merge request reports

Loading