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?
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?