@AutoConfiguration(after=GraphQlAutoConfiguration.class) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.data.query.QuerydslDataFetcher.class,org.springframework.data.querydsl.QuerydslPredicateExecutor.class}) @ConditionalOnBean(value=org.springframework.graphql.execution.GraphQlSource.class) public class GraphQlQuerydslAutoConfiguration extends java.lang.Object
Auto-configuration that creates a
GraphQlSourceBuilderCustomizers to detect Spring Data repositories with
Querydsl support and register them as DataFetchers for any queries with a
matching return type.QuerydslDataFetcher.autoRegistrationConfigurer(List, List)| Constructor and Description |
|---|
GraphQlQuerydslAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
GraphQlSourceBuilderCustomizer |
querydslRegistrar(org.springframework.beans.factory.ObjectProvider<org.springframework.data.querydsl.QuerydslPredicateExecutor<?>> executors,
org.springframework.beans.factory.ObjectProvider<org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<?>> reactiveExecutors) |
@Bean public GraphQlSourceBuilderCustomizer querydslRegistrar(org.springframework.beans.factory.ObjectProvider<org.springframework.data.querydsl.QuerydslPredicateExecutor<?>> executors, org.springframework.beans.factory.ObjectProvider<org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<?>> reactiveExecutors)