graphql.kickstart.servlet.input.NoOpBatchInputPreProcessor Maven / Gradle / Ivy
package graphql.kickstart.servlet.input;
import graphql.kickstart.execution.input.GraphQLBatchedInvocationInput;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
/** A default BatchInputPreProcessor that returns the input. */
public class NoOpBatchInputPreProcessor implements BatchInputPreProcessor {
@Override
public BatchInputPreProcessResult preProcessBatch(
GraphQLBatchedInvocationInput batchedInvocationInput,
HttpServletRequest request,
HttpServletResponse response) {
return new BatchInputPreProcessResult(batchedInvocationInput);
}
}