Search in sources :

Example 1 with UnresolvedObjectResultNode

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);
}
Also used : ExecutionResultNode(graphql.execution.nextgen.result.ExecutionResultNode) ObjectExecutionResultNode(graphql.execution.nextgen.result.ObjectExecutionResultNode) RootExecutionResultNode(graphql.execution.nextgen.result.RootExecutionResultNode) ObjectExecutionResultNode(graphql.execution.nextgen.result.ObjectExecutionResultNode) UnresolvedObjectResultNode(graphql.execution.nextgen.result.UnresolvedObjectResultNode)

Aggregations

ExecutionResultNode (graphql.execution.nextgen.result.ExecutionResultNode)1 ObjectExecutionResultNode (graphql.execution.nextgen.result.ObjectExecutionResultNode)1 RootExecutionResultNode (graphql.execution.nextgen.result.RootExecutionResultNode)1 UnresolvedObjectResultNode (graphql.execution.nextgen.result.UnresolvedObjectResultNode)1