Skip to content

Commit

Permalink
correct handling when edge id is an object (janusgraph)
Browse files Browse the repository at this point in the history
  • Loading branch information
bricaud committed Sep 6, 2018
1 parent fe930a9 commit 9a8eecc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/graphioGremlin.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,14 @@ var graphioGremlin = (function(){
}
}
if (data.type=="edge"){
data_dic.source = data.outV
data_dic.target = data.inV
data_dic.source = data.outV;
data_dic.target = data.inV;
if (data.id !== null && typeof data.id === 'object'){
console.log('Warning the edge id is an object')
if ("relationId" in data.id){
data_dic.id = data.id.relationId;
}
}
}
return data_dic
}
Expand Down

0 comments on commit 9a8eecc

Please sign in to comment.