use of graphql.execution.nextgen.result.UnresolvedObjectResultNode 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);
}
Aggregations