@AutoConfiguration(after=GraphQlAutoConfiguration.class) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.data.query.QueryByExampleDataFetcher.class,org.springframework.data.repository.query.ReactiveQueryByExampleExecutor.class}) @ConditionalOnBean(value=org.springframework.graphql.execution.GraphQlSource.class) public class GraphQlReactiveQueryByExampleAutoConfiguration extends Object
Auto-configuration
that creates a
GraphQlSourceBuilderCustomizer
s to detect Spring Data repositories with Query
By Example support and register them as DataFetcher
s for any queries with a
matching return type.QueryByExampleDataFetcher.autoRegistrationConfigurer(List, List)
Constructor and Description |
---|
GraphQlReactiveQueryByExampleAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
GraphQlSourceBuilderCustomizer |
reactiveQueryByExampleRegistrar(ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutors) |
public GraphQlReactiveQueryByExampleAutoConfiguration()
@Bean public GraphQlSourceBuilderCustomizer reactiveQueryByExampleRegistrar(ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutors)