Skip to main content

Generic ASGI

GraphQLASGI is dependency-free and can run directly or be mounted by an ASGI router.
The context’s native request is an ASGIRequest containing scope, receive, and send. WebSocket scopes are closed because subscription transports are not part of the initial integration contract.

Starlette

Mounting the router under a prefix composes all enabled routes with that prefix. Starlette middleware runs before FastQL and HTTPContext.request is the native Starlette Request.

FastAPI

FastAPI resolves router dependencies before GraphQL execution. Tags and include_in_schema control FastAPI’s OpenAPI document without changing FastQL execution behavior.