graphql.spring.web.servlet.ExecutionInputCustomizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-spring-webmvc Show documentation
Show all versions of graphql-java-spring-webmvc Show documentation
GraphQL Java Spring Webmvc integration
The newest version!
package graphql.spring.web.servlet;
import graphql.ExecutionInput;
import graphql.PublicApi;
import org.springframework.web.context.request.WebRequest;
import java.util.concurrent.CompletableFuture;
/**
* Lets you customize the #ExecutionInput before the query is executed.
* You can for example set a context object or define a root value.
*
* This is only used if you use the default {@link GraphQLInvocation}.
*/
@PublicApi
public interface ExecutionInputCustomizer {
CompletableFuture customizeExecutionInput(ExecutionInput executionInput, WebRequest webRequest);
}