Interface GraphQLInvocation

  • All Known Implementing Classes:
    DefaultGraphQLInvocation

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<graphql.ExecutionResult> invoke​(GraphQLInvocationData invocationData, io.micronaut.http.HttpRequest httpRequest, io.micronaut.http.MutableHttpResponse<java.lang.String> httpResponse)
      Invokes the GraphQL request and returns a publisher that emits ExecutionResult objects.
    • Method Detail

      • invoke

        org.reactivestreams.Publisher<graphql.ExecutionResult> invoke​(GraphQLInvocationData invocationData,
                                                                      io.micronaut.http.HttpRequest httpRequest,
                                                                      @Nullable
                                                                      io.micronaut.http.MutableHttpResponse<java.lang.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