Class GraphQlQuerydslAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.graphql.data.GraphQlQuerydslAutoConfiguration
@AutoConfiguration(after=GraphQlAutoConfiguration.class)
@ConditionalOnClass({graphql.GraphQL.class,com.querydsl.core.Query.class,org.springframework.graphql.data.query.QuerydslDataFetcher.class,org.springframework.data.querydsl.QuerydslPredicateExecutor.class})
@ConditionalOnBean(org.springframework.graphql.execution.GraphQlSource.class)
public class GraphQlQuerydslAutoConfiguration
extends Object
Auto-configuration
that creates a
GraphQlSourceBuilderCustomizer
s to detect Spring Data repositories with
Querydsl support and register them as DataFetcher
s for any queries with a
matching return type.- Since:
- 2.7.0
- Author:
- Rossen Stoyanchev, Brian Clozel
- See Also:
-
QuerydslDataFetcher.autoRegistrationConfigurer(List, List)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionquerydslRegistrar
(ObjectProvider<org.springframework.data.querydsl.QuerydslPredicateExecutor<?>> executors)
-
Constructor Details
-
GraphQlQuerydslAutoConfiguration
public GraphQlQuerydslAutoConfiguration()
-
-
Method Details
-
querydslRegistrar
@Bean public GraphQlSourceBuilderCustomizer querydslRegistrar(ObjectProvider<org.springframework.data.querydsl.QuerydslPredicateExecutor<?>> executors)
-