use of graphql.execution.nextgen.result.ObjectExecutionResultNode in project graphql-java by graphql-java.
the class BatchedExecutionStrategy method resolveZipper.
private NodeZipper<ExecutionResultNode> resolveZipper(NodeZipper<ExecutionResultNode> unresolvedNodeZipper, List<FetchedValueAnalysis> fetchedValuesForNode) {
UnresolvedObjectResultNode unresolvedNode = (UnresolvedObjectResultNode) unresolvedNodeZipper.getCurNode();
List<ExecutionResultNode> newChildren = util.fetchedValueAnalysisToNodes(fetchedValuesForNode);
ObjectExecutionResultNode newNode = unresolvedNode.withNewChildren(newChildren);
return unresolvedNodeZipper.withNewNode(newNode);
}
use of graphql.execution.nextgen.result.ObjectExecutionResultNode in project graphql-java by graphql-java.
the class DefaultExecutionStrategy method resolveNode.
private CompletableFuture<NodeZipper<ExecutionResultNode>> resolveNode(ExecutionContext executionContext, NodeZipper<ExecutionResultNode> unresolvedNode) {
ExecutionStepInfo executionStepInfo = unresolvedNode.getCurNode().getExecutionStepInfo();
ResolvedValue resolvedValue = unresolvedNode.getCurNode().getResolvedValue();
FieldSubSelection fieldSubSelection = util.createFieldSubSelection(executionContext, executionStepInfo, resolvedValue);
return resolveSubSelection(executionContext, fieldSubSelection).thenApply(resolvedChildMap -> unresolvedNode.withNewNode(new ObjectExecutionResultNode(executionStepInfo, resolvedValue, resolvedChildMap)));
}
Aggregations