-
Notifications
You must be signed in to change notification settings - Fork 14
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
graphene-tornado does not understand when an Observable is returned #27
Comments
The code that |
I could be wrong here but wouldn't you need to implement websockets first before subscriptions would work with this repo? I only looked briefly but this codebase has no websocket handlers. |
Good point. I believe that's because the PR in When the handlers created in the PR for So Looking at Hope it makes sense. |
@kinow Thanks Bruno! That helps a lot. Looking at your tornado-sandbox repo, did you ever get subscriptions working? Your TornadoSubscriptionServer class looks like the missing puzzle piece for me. |
Yes with @dwsutherland 's help. The example under Interestingly, it is working with the current |
@JacobMillner I think you were correct. I re-did my steps last time, and looks like the whole mess started as my GraphQL subscription queries were going to a The Closing the issue. Thanks and sorry for the noise! |
Hi,
I am using
graphql-core
and haven't triedgraphql-core-next
, so forgive me if what I'm saying here has been fixed there already.I'm currently experimenting with subscriptions with
graphene-tornado
andgraphql-ws
(there is a pull request for supporting subscriptions there with Tornado).Subscriptions are required to returned an RxPy
Observable
. However, when that is returned bygraphql-core
,graphene-tornado
fails as it treats it as agraphql-core
'sExecutionResult
, trying to access.errors
and.invalid
, which results in an exception.So sending a query like
Always results in an exception. As the types don't match between
graphql-core
andgraphene-tornado
.The text was updated successfully, but these errors were encountered: