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

graphql.execution.nextgen.FetchedValue Maven / Gradle / Ivy

package graphql.execution.nextgen;

import graphql.GraphQLError;
import graphql.Internal;

import java.util.ArrayList;
import java.util.List;

@Internal
public class FetchedValue {
    private final Object fetchedValue;
    private final Object rawFetchedValue;
    private final List errors;

    public FetchedValue(Object fetchedValue, Object rawFetchedValue, List errors) {
        this.fetchedValue = fetchedValue;
        this.rawFetchedValue = rawFetchedValue;
        this.errors = errors;
    }

    /*
     * the unboxed value meaning not Optional, not DataFetcherResult etc
     */
    public Object getFetchedValue() {
        return fetchedValue;
    }

    public Object getRawFetchedValue() {
        return rawFetchedValue;
    }

    public List getErrors() {
        return new ArrayList<>(errors);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy