Class DefaultExecutionGraphQlService
java.lang.Object
org.springframework.graphql.execution.DefaultExecutionGraphQlService
- All Implemented Interfaces:
ExecutionGraphQlService
ExecutionGraphQlService
that uses a GraphQlSource
to obtain a
GraphQL
instance and perform query execution.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataLoaderRegistrar
(DataLoaderRegistrar registrar) Add a registrar to get access to and configure theDataLoaderRegistry
for each request.final reactor.core.publisher.Mono<ExecutionGraphQlResponse>
execute
(ExecutionGraphQlRequest request) Execute the request and return the response.
-
Constructor Details
-
DefaultExecutionGraphQlService
-
-
Method Details
-
addDataLoaderRegistrar
Add a registrar to get access to and configure theDataLoaderRegistry
for each request.- Parameters:
registrar
- the registrar to add
-
execute
public final reactor.core.publisher.Mono<ExecutionGraphQlResponse> execute(ExecutionGraphQlRequest request) Description copied from interface:ExecutionGraphQlService
Execute the request and return the response.- Specified by:
execute
in interfaceExecutionGraphQlService
- Parameters:
request
- the request to execute- Returns:
- the resulting response
-