Interface GraphQLExecutionInputCustomizer

All Known Implementing Classes:
DefaultGraphQLExecutionInputCustomizer

public interface GraphQLExecutionInputCustomizer
An interface for customizing the ExecutionInput. A custom implementation can be provided to transform the execution input to e.g. set a context or root object.
Since:
1.0
Author:
Marcel Overdijk
See Also:
  • ExecutionInput.transform(java.util.function.Consumer)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<graphql.ExecutionInput>
    customize(graphql.ExecutionInput executionInput, io.micronaut.http.HttpRequest httpRequest, @Nullable io.micronaut.http.MutableHttpResponse<String> httpResponse)
    Customizes the GraphQL execution input.
  • Method Details

    • customize

      org.reactivestreams.Publisher<graphql.ExecutionInput> customize(graphql.ExecutionInput executionInput, io.micronaut.http.HttpRequest httpRequest, @Nullable @Nullable io.micronaut.http.MutableHttpResponse<String> httpResponse)
      Customizes the GraphQL execution input.
      Parameters:
      executionInput - the execution input
      httpRequest - the HTTP request
      httpResponse - the mutable HTTP response, can be null when using websocket
      Returns:
      the GraphQL context object