Class GraphQlReactiveQueryByExampleAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQueryByExampleAutoConfiguration
@AutoConfiguration(after=GraphQlAutoConfiguration.class)
@ConditionalOnClass({graphql.GraphQL.class,org.springframework.graphql.data.query.QueryByExampleDataFetcher.class,org.springframework.data.repository.query.ReactiveQueryByExampleExecutor.class})
@ConditionalOnBean(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.- Since:
- 2.7.0
- Author:
- Rossen Stoyanchev
- See Also:
-
QueryByExampleDataFetcher.autoRegistrationConfigurer(List, List)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactiveQueryByExampleRegistrar
(ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutors)
-
Constructor Details
-
GraphQlReactiveQueryByExampleAutoConfiguration
public GraphQlReactiveQueryByExampleAutoConfiguration()
-
-
Method Details
-
reactiveQueryByExampleRegistrar
@Bean public GraphQlSourceBuilderCustomizer reactiveQueryByExampleRegistrar(ObjectProvider<org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<?>> reactiveExecutors)
-