diff --git a/spring-graphql-docs/src/docs/asciidoc/index.adoc b/spring-graphql-docs/src/docs/asciidoc/index.adoc index d39b2928..d382fc61 100644 --- a/spring-graphql-docs/src/docs/asciidoc/index.adoc +++ b/spring-graphql-docs/src/docs/asciidoc/index.adoc @@ -534,9 +534,9 @@ of the repository domain type. If needed, you can use the `typeName` attribute o Auto-registration detects if a given repository implements `QuerydslBinderCustomizer` and transparently applies that through `QuerydslDataFetcher` builder methods. -Auto-registration is performed through a `GraphQLTypeVisitor` which can be obtained from -`QuerydslDataFetcher`. The <> automatically -detects `@GraphQlRepository` beans and applies the `GraphQLTypeVisitor`. +Auto-registration is performed through a `RuntimeWiringConfigurer` which can be obtained +from `QuerydslDataFetcher`. The <> automatically +detects `@GraphQlRepository` beans and uses them to configure the `RuntimeWiringConfigurer`. @@ -607,9 +607,9 @@ By default, the name of the GraphQL type returned by the query must match the si of the repository domain type. If needed, you can use the `typeName` attribute of `@GraphQlRepository` to specify the target GraphQL type name. -Auto-registration is performed through a `GraphQLTypeVisitor` which can be obtained from +Auto-registration is performed through a `RuntimeWiringConfigurer` which can be obtained from `QueryByExampleDataFetcher`. The <> automatically -detects `@GraphQlRepository` beans and applies the `GraphQLTypeVisitor`. +detects `@GraphQlRepository` beans and uses them to configure the `RuntimeWiringConfigurer`. diff --git a/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java b/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java index 8b3b467c..d0d2d3b5 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java @@ -197,8 +197,9 @@ public abstract class QueryByExampleDataFetcher { * @param executors repositories to consider for registration * @param reactiveExecutors reactive repositories to consider for registration * @return the created visitor + * @deprecated in favor of {@link #autoRegistrationConfigurer(List, List)} */ - @SuppressWarnings("deprecation") + @Deprecated public static GraphQLTypeVisitor autoRegistrationTypeVisitor( List> executors, List> reactiveExecutors) {