Skip to content

Asynchronous Support #2

Closed
Closed
@mgenti

Description

@mgenti

I was looking through the code in init.py to try and adapt the "return_promise" option to work with Tornado's IOLoop. I started with the example in the sanic-graphql repository.

Looking through how the graphql-server package uses the promise library it looks like the query is always executed immediately. I believe this is due to the fact that the executor never yields anything for an event loop to iterate on.

I have not used the promise library before so I might be missing something. Could you help me clarify how to use graphql-server asynchronously?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: invalidDoes not provide useful info or has gone stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions