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 committed Dec 4, 2023
1 parent 2871a2a commit 25113aa
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 25113aa

Please sign in to comment.