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

com.introproventures.graphql.jpa.query.schema.impl.DataFetchingEnvironmentBuilder Maven / Gradle / Ivy

The newest version!
package com.introproventures.graphql.jpa.query.schema.impl;

import graphql.execution.ExecutionContext;
import graphql.schema.DataFetchingEnvironment;
import graphql.schema.DataFetchingEnvironmentImpl;

/**
 * Wrapper utility class to bridge between Graphql-java11 and Graphql-java13 Api changes
 *
 */
class DataFetchingEnvironmentBuilder {

    public static DataFetchingEnvironmentImpl.Builder newDataFetchingEnvironment(DataFetchingEnvironment environment) {
        return DataFetchingEnvironmentImpl.newDataFetchingEnvironment(environment);
    }

    public static DataFetchingEnvironmentImpl.Builder newDataFetchingEnvironment() {
        return DataFetchingEnvironmentImpl.newDataFetchingEnvironment();
    }

    public static DataFetchingEnvironmentImpl.Builder newDataFetchingEnvironment(ExecutionContext executionContext) {
        return DataFetchingEnvironmentImpl.newDataFetchingEnvironment(executionContext);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy