graphql.execution.instrumentation.dataloader.FallbackDataLoaderDispatchStrategy Maven / Gradle / Ivy
package graphql.execution.instrumentation.dataloader;
import graphql.Internal;
import graphql.execution.DataLoaderDispatchStrategy;
import graphql.execution.ExecutionContext;
import graphql.schema.DataFetcher;
/**
* Used when the execution strategy is not an AsyncExecutionStrategy: simply dispatch always after each DF.
*/
@Internal
public class FallbackDataLoaderDispatchStrategy implements DataLoaderDispatchStrategy {
private final ExecutionContext executionContext;
public FallbackDataLoaderDispatchStrategy(ExecutionContext executionContext) {
this.executionContext = executionContext;
}
@Override
public DataFetcher> modifyDataFetcher(DataFetcher> dataFetcher) {
return (DataFetcher
© 2015 - 2024 Weber Informatics LLC | Privacy Policy