I think the goal of AutoRegistrationTypeVisitor#hasDataFetcher is that: determine whether the field bind customized DataFetcher, instead of default DataFetcher.
|
return (fetcher != null && !(fetcher instanceof PropertyDataFetcher)); |
But user can change the default DataFetcher of GraphQL Java by GraphQLCodeRegistry#defaultDataFetcherFactory. It will be more accurate to replace PropertyDataFetcher to DefaultDataFetcher.