-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Dear all,
I'm trying to use graphql-java for loading a graph of in-memory java objects and doing some transformations on them (e.g. exporting to CSV).
When I use graphql.execute(ExecutionInput), it always provides a list of nested LinkedHashMaps
However, I would prefer having results as POJOs.
I dig a little bit into the code, and found, that the results are aggregated in AbstractAsyncExecutionStrategy#handleResults. So I decided to implement a custom strategy, which would build POJO directly.
However, I don't see any way, how to know, which output class it should be. I could take it from the current ExecutionPath (which is available in ExecutionStrategyParameters), but handleResults doesn't have this parameter.
So, my questions are:
- Is there any way to get current ExecutionPath in
handlerResults? - Is there any other way to produce POJO instead of LinkedHashMap?
PS thanks a lot for the wonderful library!