Serving the API
Strawberry works both with ASGI (async) and WSGI (sync). This integration supports both ways of serving django.
ASGI is the best way to enjoy everything that strawberry has to offer and is highly recommended unless you canβt for some reason. By using WSGI you will be missing support for some interesting features, such as Data Loaders .
Serving as ASGI (async)
Expose the strawberry API when using ASGI by setting your urls.py like this:
Serving WSGI (sync)
Expose the strawberry API when using WSGI by setting your urls.py like this: