We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bac91a commit f589fa5Copy full SHA for f589fa5
1 file changed
graphql-java-kickstart/src/main/java/graphql/kickstart/execution/GraphQLInvoker.java
@@ -1,5 +1,7 @@
1
package graphql.kickstart.execution;
2
3
+import static java.util.stream.Collectors.toList;
4
+
5
import graphql.ExecutionResult;
6
import graphql.GraphQL;
7
import graphql.kickstart.execution.context.ContextSetting;
@@ -45,10 +47,7 @@ private List<ExecutionResult> query(List<GraphQLSingleInvocationInput> batchedIn
45
47
// .configureInstrumentationForContext(getInstrumentation, executionIds, optionsSupplier.get());
46
48
return batchedInvocationInput.stream()
49
.map(this::executeAsync)
- //We want eager eval
- .collect(Collectors.toList())
50
- .stream()
51
.map(CompletableFuture::join)
52
- .collect(Collectors.toList());
+ .collect(toList());
53
}
54
0 commit comments