Search in sources :

Example 1 with GraphQlSource

use of org.springframework.graphql.execution.GraphQlSource in project spring-graphql by spring-projects.

the class GraphQlSetup method toGraphQlService.

public ExecutionGraphQlService toGraphQlService() {
    GraphQlSource source = graphQlSourceBuilder.build();
    ExecutionGraphQlService service = new ExecutionGraphQlService(source);
    this.dataLoaderRegistrars.forEach(service::addDataLoaderRegistrar);
    return service;
}
Also used : GraphQlSource(org.springframework.graphql.execution.GraphQlSource) ExecutionGraphQlService(org.springframework.graphql.execution.ExecutionGraphQlService)

Aggregations

ExecutionGraphQlService (org.springframework.graphql.execution.ExecutionGraphQlService)1 GraphQlSource (org.springframework.graphql.execution.GraphQlSource)1