1👍
✅
As @IainShelvington said in comments the parameter to GraphQLView
should be a schema object you can also see it in docs:
path('graphql', GraphQLView.as_view(schema=schema), name='graphql'),
Source:stackexchange.com