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.0This 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 ofgraphql_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.0This 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 ofgraphql_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
-
a1dec3c
Release🍓 0.213.0 -
196816d
Add support for multiple GraphQL IDEs (#3209) -
25ae2b4
Release🍓 0.212.0 -
35d671e
Distinguish between python and graphql generics (#3202) -
dfa003b
Release🍓 0.211.2 -
60e42c9
remove useless graphiql submodules (#3203) -
627feaf
Fix typo -
f2a010c
Fix pyright tests (#3201) -
ff583b6
Add missing link to field extensions (#3193) -
88960fe
Bump the all-dependencies group with 7 updates (#3192) - Additional commits viewable in compare view