diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..920b50d7a0 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,4 @@ +Release type: patch + +This releases fixes an issue with the debug server that prevented the +usage of dataloaders, see: https://github.com/strawberry-graphql/strawberry/issues/940 diff --git a/strawberry/cli/commands/server.py b/strawberry/cli/commands/server.py index faf25ede65..d751595725 100644 --- a/strawberry/cli/commands/server.py +++ b/strawberry/cli/commands/server.py @@ -57,4 +57,4 @@ def server(schema, host, port, app_dir): app.add_websocket_route(path, graphql_app) print(f"Running strawberry on http://{host}:{port}/ 🍓") - uvicorn.run(app, host=host, port=port, log_level="error") + uvicorn.run(app, loop="none", host=host, port=port, log_level="error")