@Configuration(proxyBeanMethods=false) @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) @AutoConfigureAfter(value=GraphQlAutoConfiguration.class) public class GraphQlQuerydslAutoConfiguration extends Object
Auto-configuration
that creates a
GraphQlSourceBuilderCustomizer
s to detect Spring Data repositories with
Querydsl support and register them as DataFetcher
s for any queries with a
matching return type.QuerydslDataFetcher.autoRegistrationConfigurer(List, List)
Constructor and Description |
---|
GraphQlQuerydslAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
GraphQlSourceBuilderCustomizer |
querydslRegistrar(ObjectProvider<org.springframework.data.querydsl.QuerydslPredicateExecutor<?>> executorsProvider,
ObjectProvider<org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<?>> reactiveExecutorsProvider) |
@Bean public GraphQlSourceBuilderCustomizer querydslRegistrar(ObjectProvider<org.springframework.data.querydsl.QuerydslPredicateExecutor<?>> executorsProvider, ObjectProvider<org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<?>> reactiveExecutorsProvider)