-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added GraphQL Playgrounds #25
base: master
Are you sure you want to change the base?
Conversation
Created a view to get GraphQL Playground view Changed the consumer to return errors only if there is an error
…eld with a null value
@shreyas44 Thanks so much for the PR! This looks awesome. I'd love to merge this in :) Can you update the README so that the getting started instructions mention how to set up the GraphQL playground view to test subscriptions? |
@jaydenwindle I updated the README. Check it out and let me know if anything else needs to be changed! |
The instructions in @shreyas44's branch are still missing from the existing README, providing what seem to be a critical piece of the puzzle to get this working. What's the status of this? |
Hey @singlerider! You can check out the master branch in my fork where I've merged this branch as well as the branch in #28. The fork is not published to Pypi though, so you would have to download it and add it directly from the repo. |
@shreyas44 thank you for the quick reply, but I'm still having all kind of trouble getting any implementation of Subscriptions working in Django. For example, I'm getting
From my project that's using both your fork and this main repository. Do you have a sample project actually using this library that functions? I'll need to make sure I have the right dependency versions installed and most of these libraries are showing their age. I'm on Python 3.9.0 with Django 3.1.2 and Channels 2.4.0 (installed from |
@singlerider no problem! As for your problem, make sure it's I don't have any public repository implementing this, unfortunately :( |
@shreyas44 No luck. I can't build your repo from git using |
Integrated GraphQL Playgrounds with the library
graphene_subscriptions.views.playground_view
playgrounds.html
based on https://github.com/prismagraphql/graphql-playground/blob/master/packages/graphql-playground-html/withAnimation.htmlResolves #9, uses GraphQL Playgrounds instead of GraphiQL which also supports subscriptions.
Let me know if you want me to update the README :)