Class GraphQLRequestHandler
-
- All Implemented Interfaces:
public class GraphQLRequestHandler
-
-
Constructor Summary
Constructors Constructor Description GraphQLRequestHandler(GraphQL graphQL, KotlinDataLoaderRegistryFactory dataLoaderRegistryFactory)
-
Method Summary
Modifier and Type Method Description GraphQLServerResponse
executeRequest(GraphQLServerRequest graphQLRequest, GraphQLContext graphQLContext)
Execute a GraphQL request in a non-blocking fashion. Flow<GraphQLResponse<?>>
executeSubscription(GraphQLRequest graphQLRequest, GraphQLContext graphQLContext)
Execute a GraphQL subscription operation in a non-blocking fashion. -
-
Method Detail
-
executeRequest
GraphQLServerResponse executeRequest(GraphQLServerRequest graphQLRequest, GraphQLContext graphQLContext)
Execute a GraphQL request in a non-blocking fashion. This should only be used for queries and mutations. Subscriptions require more specific server logic and will need to be handled separately.
-
executeSubscription
Flow<GraphQLResponse<?>> executeSubscription(GraphQLRequest graphQLRequest, GraphQLContext graphQLContext)
Execute a GraphQL subscription operation in a non-blocking fashion.
-
-
-
-