Skip to content

Commit

Permalink
change from and to names in api edges
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Nov 27, 2024
1 parent 29f28fe commit e0d367f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/grebi_api/src/main/java/uk/ac/ebi/grebi/GrebiApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ static void run(
.map(edge -> {
Map<String, Object> refs = (Map<String,Object>) edge.get("_refs");
Map<String, Object> retEdge = new LinkedHashMap<>(edge);
retEdge.put("grebi:fromNodeId", refs.get((String) edge.get("grebi:fromNodeId")));
retEdge.put("grebi:toNodeId", refs.get((String) edge.get("grebi:toNodeId")));
retEdge.put("from", refs.get((String) edge.get("grebi:fromNodeId")));
retEdge.put("to", refs.get((String) edge.get("grebi:toNodeId")));

// String type = (String)edge.get("grebi:type");
// if(refs.containsKey(type)) {
Expand Down

0 comments on commit e0d367f

Please sign in to comment.