graphql.execution.batched.GraphQLExecutionNodeDatum Maven / Gradle / Ivy
package graphql.execution.batched;
import java.util.Map;
class GraphQLExecutionNodeDatum extends GraphQLExecutionResultContainer {
private final Map parentResult;
private final Object source;
public GraphQLExecutionNodeDatum(Map parentResult, Object source) {
this.parentResult = parentResult;
this.source = source;
}
public Map getParentResult() {
return parentResult;
}
@Override
public void putResult(String fieldName, Object value) {
parentResult.put(fieldName, value);
}
public Object getSource() {
return source;
}
}