Skip to content

Bump strawberry-graphql[fastapi] from 0.178.0 to 0.213.0

Bumps strawberry-graphql[fastapi] from 0.178.0 to 0.213.0.

Release notes

Sourced from strawberry-graphql[fastapi]'s releases.

🍓 0.213.0

This release adds support in all all our HTTP integration for choosing between different GraphQL IDEs. For now we support GraphiQL (the default), Apollo Sandbox, and Pathfinder.

Deprecations: This release deprecates the graphiql option in all HTTP integrations, in favour of graphql_ide, this allows us to only have one settings to change GraphQL ide, or to disable it.

Here's a couple of examples of how you can use this:

FastAPI

import strawberry
from fastapi import FastAPI
from strawberry.fastapi import GraphQLRouter
from api.schema import schema
graphql_app = GraphQLRouter(schema, graphql_ide="apollo-sandbox")
app = FastAPI()
app.include_router(graphql_app, prefix="/graphql")

Django

from django.urls import path
from strawberry.django.views import GraphQLView
from api.schema import schema
urlpatterns = [
path("graphql/", GraphQLView.as_view(schema=schema, graphql_ide="pathfinder")),
]

Releases contributed by @​patrick91 via #3209

🍓 0.212.0

This release changes how we check for generic types. Previously, any type that had a generic typevar would be considered generic for the GraphQL schema, this would generate un-necessary types in some cases. Now, we only consider a type generic if it has a typevar that is used as the type of a field or one of its arguments.

For example the following type:

... (truncated)

Changelog

Sourced from strawberry-graphql[fastapi]'s changelog.

0.213.0 - 2023-11-08

This release adds support in all all our HTTP integration for choosing between different GraphQL IDEs. For now we support GraphiQL (the default), Apollo Sandbox, and Pathfinder.

Deprecations: This release deprecates the graphiql option in all HTTP integrations, in favour of graphql_ide, this allows us to only have one settings to change GraphQL ide, or to disable it.

Here's a couple of examples of how you can use this:

FastAPI

import strawberry
from fastapi import FastAPI
from strawberry.fastapi import GraphQLRouter
from api.schema import schema
graphql_app = GraphQLRouter(schema, graphql_ide="apollo-sandbox")
app = FastAPI()
app.include_router(graphql_app, prefix="/graphql")

Django

from django.urls import path
from strawberry.django.views import GraphQLView
from api.schema import schema
urlpatterns = [
path("graphql/", GraphQLView.as_view(schema=schema, graphql_ide="pathfinder")),
]

Contributed by Patrick Arminio via [PR #3209](strawberry-graphql/strawberry#3209)

0.212.0 - 2023-11-07

This release changes how we check for generic types. Previously, any type that had a generic typevar would be considered generic for the GraphQL schema, this

... (truncated)

Commits

Merge request reports