@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 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<?>> executors,
ObjectProvider<org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<?>> reactiveExecutors) |
@Bean public GraphQlSourceBuilderCustomizer querydslRegistrar(ObjectProvider<org.springframework.data.querydsl.QuerydslPredicateExecutor<?>> executors, ObjectProvider<org.springframework.data.querydsl.ReactiveQuerydslPredicateExecutor<?>> reactiveExecutors)