All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy