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

graphql.execution.preparsed.NoOpPreparsedDocumentProvider Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.execution.preparsed;


import graphql.ExecutionInput;
import graphql.Internal;

import java.util.concurrent.CompletableFuture;
import java.util.function.Function;

@Internal
public class NoOpPreparsedDocumentProvider implements PreparsedDocumentProvider {
    public static final NoOpPreparsedDocumentProvider INSTANCE = new NoOpPreparsedDocumentProvider();

    @Override
    public CompletableFuture getDocumentAsync(ExecutionInput executionInput, Function parseAndValidateFunction) {
        return CompletableFuture.completedFuture(parseAndValidateFunction.apply(executionInput));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy