From d8d8229a33006f2b2daebe0cba486e8a7180ada1 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Mon, 17 Jan 2022 21:09:00 +0000 Subject: [PATCH] Polishing Missed one deprecation and doc updates. See gh-244 --- spring-graphql-docs/src/docs/asciidoc/index.adoc | 10 +++++----- .../graphql/data/query/QueryByExampleDataFetcher.java | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) 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) {