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