Interface GraphQLInvocation

All Known Implementing Classes:
DefaultGraphQLInvocation

public interface GraphQLInvocation
An interface for invoking GraphQL request.
Since:
1.0
Author:
Marcel Overdijk
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<graphql.ExecutionResult>
    invoke(GraphQLInvocationData invocationData, io.micronaut.http.HttpRequest httpRequest, @Nullable io.micronaut.http.MutableHttpResponse<String> httpResponse)
    Invokes the GraphQL request and returns a publisher that emits ExecutionResult objects.
  • Method Details

    • invoke

      org.reactivestreams.Publisher<graphql.ExecutionResult> invoke(GraphQLInvocationData invocationData, io.micronaut.http.HttpRequest httpRequest, @Nullable @Nullable io.micronaut.http.MutableHttpResponse<String> httpResponse)
      Invokes the GraphQL request and returns a publisher that emits ExecutionResult objects.
      Parameters:
      invocationData - the GraphQL invocation data
      httpRequest - the HTTP request
      httpResponse - the mutable HTTP response, can be null when using websocket
      Returns:
      the GraphQL execution result