-------------------
This release adds support for FastAPI integration using APIRouter.
python
import strawberry
from fastapi import FastAPI
from strawberry.fastapi import GraphQLRouter
strawberry.type
class Query:
strawberry.field
def hello(self) -> str:
return "Hello World"
schema = strawberry.Schema(Query)
graphql_app = GraphQLRouter(schema)
app = FastAPI()
app.include_router(graphql_app, prefix="/graphql")
Contributed by [Jiří Bireš](https://github.com/jiribires) [PR #1291](https://github.com/strawberry-graphql/strawberry/pull/1291/)