Has anyone found an existing GraphQL library that ...
# server
b
Has anyone found an existing GraphQL library that utilizes coroutines?
👍 3
m
not that I know of. I use Apollo on Android. I use RxJava, but it looks like it would be pretty easy to use coroutines with an extension https://github.com/apollographql/apollo-android/issues/606
b
I've just started creating my first GraphQL api and found a library named KGraphQL, which uses coroutines
Now, I still know very little about GraphQL or coroutines, but I did notice that unfortunately it allows changing the dispatcher but not the context
b
I'm just finishing up an adapter for graphql-java that will give you full control of the context it is launched in
s
hey @bdawg.io how did you manage to control the context in which
graphql-java
executes resolvers ? do you have an example of the adapter ?
b
@samir
graphql-java
has an “instrumentation” concept which pretty much gives you a chance to intercept most things like the `DataFetcher`s and the `ExecutionResult`s. We’re testing it out on our internal stuff and then I plan on open sourcing it.
s
great thank you for your answer 🙂 I am not sure how can I make this work with instrumentation. I will look into it and looking forward to you open sourcing the adapter.