Skip to content

Commit

Permalink
another fix for non-null resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Pospisil authored and jmartisk committed Dec 8, 2023
1 parent 2871a2a commit 9483628
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public CompletableFuture<List<Object>> 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 {
Expand Down

0 comments on commit 9483628

Please sign in to comment.