Skip to content

graphene-tornado does not understand when an Observable is returned #27

@kinow

Description

@kinow

Hi,

I am using graphql-core and haven't tried graphql-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 and graphql-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 by graphql-core, graphene-tornado fails as it treats it as a graphql-core's ExecutionResult, trying to access .errors and .invalid, which results in an exception.

So sending a query like

subscription {
  fruit {
    name
  }
}

Always results in an exception. As the types don't match between graphql-core and graphene-tornado.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions