diff --git a/server/implementation/src/main/java/io/smallrye/graphql/bootstrap/FederationDataFetcher.java b/server/implementation/src/main/java/io/smallrye/graphql/bootstrap/FederationDataFetcher.java index 1ab88525c..dd89fa54a 100644 --- a/server/implementation/src/main/java/io/smallrye/graphql/bootstrap/FederationDataFetcher.java +++ b/server/implementation/src/main/java/io/smallrye/graphql/bootstrap/FederationDataFetcher.java @@ -65,7 +65,7 @@ public CompletableFuture> get(DataFetchingEnvironment environment) })); return sequence(repsWithPositionPerType.entrySet().stream().map(e -> { var fieldDefinition = fieldDefinitions.get(e.getKey()); - if (fieldDefinition.getType() instanceof GraphQLList) { + if (getGraphqlTypeFromField(fieldDefinition) instanceof GraphQLList) { //use batch loader if available return executeList(fieldDefinition, environment, e.getValue()); } else {