@AutoConfiguration(after=GraphQlAutoConfiguration.class) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.data.query.QueryByExampleDataFetcher.class,org.springframework.data.repository.query.QueryByExampleExecutor.class}) @ConditionalOnBean(value=org.springframework.graphql.execution.GraphQlSource.class) public class GraphQlQueryByExampleAutoConfiguration 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 |
---|
GraphQlQueryByExampleAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
GraphQlSourceBuilderCustomizer |
queryByExampleRegistrar(ObjectProvider<org.springframework.data.repository.query.QueryByExampleExecutor<?>> executors,
ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutors) |
public GraphQlQueryByExampleAutoConfiguration()
@Bean public GraphQlSourceBuilderCustomizer queryByExampleRegistrar(ObjectProvider<org.springframework.data.repository.query.QueryByExampleExecutor<?>> executors, ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutors)