From 9a8eecc12638902f4557eaa37c5d220ec574b356 Mon Sep 17 00:00:00 2001 From: bricaud Date: Thu, 6 Sep 2018 21:48:44 +0200 Subject: [PATCH] correct handling when edge id is an object (janusgraph) --- scripts/graphioGremlin.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/graphioGremlin.js b/scripts/graphioGremlin.js index 2410c06..4ed0941 100644 --- a/scripts/graphioGremlin.js +++ b/scripts/graphioGremlin.js @@ -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 }