You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: GraphQLView() received an invalid keyword 'subscriptions_enabled'. as_view only accepts arguments that are already attributes of the class.
#644
Closed
thclark opened this issue
Oct 18, 2024
· 3 comments
· Fixed by #645
TypeError: AsyncGraphQLView() received an invalid keyword 'subscriptions_enabled'. as_view only accepts arguments that are already attributes of the class.
The same error occurs using GraphQLView() rather than AsyncGraphQLView().
System Information
# from my pyproject.toml
strawberry-graphql = {version = "^0.246.2", extras = ["debug-server"]}
strawberry-graphql-django = "^0.49.0"
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
Describe the Bug
When using subscriptions in a view as according to the docs here, you update your urls.py to look like:
However, this causes an error during testing:
The same error occurs using
GraphQLView()
rather thanAsyncGraphQLView()
.System Information
Upvote & Fund
The text was updated successfully, but these errors were encountered: