I've just started creating my first GraphQL api and found a library named KGraphQL, which uses coroutines
bartvh
11/21/2018, 12:53 PM
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
bdawg.io
11/21/2018, 2:28 PM
I'm just finishing up an adapter for graphql-java that will give you full control of the context it is launched in
s
samir
01/23/2019, 10:58 AM
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
bdawg.io
01/23/2019, 12:13 PM
@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
samir
01/23/2019, 12:51 PM
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.