Interface GraphQLExecutionInputCustomizer
-
- All Known Implementing Classes:
DefaultGraphQLExecutionInputCustomizer
public interface GraphQLExecutionInputCustomizerAn interface for customizing theExecutionInput. A custom implementation can be provided to transform the execution input to e.g. set a context or root object.- Since:
- 1.0
- See Also:
ExecutionInput.transform(java.util.function.Consumer)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<graphql.ExecutionInput>customize(graphql.ExecutionInput executionInput, io.micronaut.http.HttpRequest httpRequest, io.micronaut.http.MutableHttpResponse<java.lang.String> httpResponse)Customizes the GraphQL execution input.
-
-
-
Method Detail
-
customize
org.reactivestreams.Publisher<graphql.ExecutionInput> customize(graphql.ExecutionInput executionInput, io.micronaut.http.HttpRequest httpRequest, @Nullable io.micronaut.http.MutableHttpResponse<java.lang.String> httpResponse)Customizes the GraphQL execution input.- Parameters:
executionInput- the execution inputhttpRequest- the HTTP requesthttpResponse- the mutable HTTP response, can be null when using websocket- Returns:
- the GraphQL context object
-
-