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 TypeMethodDescriptionorg.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 emitsExecutionResult
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 emitsExecutionResult
objects.- Parameters:
invocationData
- the GraphQL invocation datahttpRequest
- the HTTP requesthttpResponse
- the mutable HTTP response, can be null when using websocket- Returns:
- the GraphQL execution result
-