Skip to content

Commit

Permalink
[FIX] GraphQl : fix result mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementBareth committed Apr 21, 2023
1 parent 855f9c8 commit cc440a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ public List<Map<String, Object>> find(StorageQuery query) throws EntityDoesNotEx
Map<String, Object> result = graphQLService.executeGraphQLRequest(graphQlQuery, query.getStorageConfiguration().getCode());

if(result != null) {
List<Map<String, Object>> values = (List<Map<String, Object>>) result.get(query.getCet().getCode());
String queryType = GraphQLQueryBuilder.toV4QueryType(query.getCet().getCode());
List<Map<String, Object>> values = (List<Map<String, Object>>) result.get(queryType);
values = values != null ? values : new ArrayList<>();

values.forEach(map -> {
Expand Down

0 comments on commit cc440a6

Please sign in to comment.