@Configuration(proxyBeanMethods=false) @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) @AutoConfigureAfter(value=GraphQlAutoConfiguration.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<?>> executorsProvider,
ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutorsProvider) |
public GraphQlQueryByExampleAutoConfiguration()
@Bean public GraphQlSourceBuilderCustomizer queryByExampleRegistrar(ObjectProvider<org.springframework.data.repository.query.QueryByExampleExecutor<?>> executorsProvider, ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutorsProvider)