From 3106c8c8d6482f764084e0bd1d6cfb6f254bafb4 Mon Sep 17 00:00:00 2001 From: John Lindal Date: Fri, 23 Mar 2018 14:52:36 -0700 Subject: [PATCH] fix for amazon neptune --- scripts/graphioGremlin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/graphioGremlin.js b/scripts/graphioGremlin.js index fa2cd25..2bf2e6f 100644 --- a/scripts/graphioGremlin.js +++ b/scripts/graphioGremlin.js @@ -139,11 +139,11 @@ var graphioGremlin = (function(){ // 'inject' is necessary in case of an isolated node ('both' would lead to an empty answer) var id = d.id; if(isNaN(id)){ - id = "'"+id+"'"; + id = '"'+id+'"'; } - var gremlin_query_nodes = "nodes = g.V("+id+").as('node').both().as('node').select(all,'node').inject(g.V("+id+")).unfold()" - var gremlin_query_edges = "edges = g.V("+id+").bothE()" - var gremlin_query = gremlin_query_nodes+"\n"+gremlin_query_edges+"\n"+"[nodes.toList(),edges.toList()]" + var gremlin_query_nodes = 'nodes = g.V('+id+').as("node").both().as("node").select(all,"node").inject(g.V('+id+')).unfold()' + var gremlin_query_edges = 'edges = g.V('+id+').bothE()' + var gremlin_query = gremlin_query_nodes+'\n'+gremlin_query_edges+'\n'+'[nodes.toList(),edges.toList()]' // while busy, show we're doing something in the messageArea. $('#messageArea').html('

(loading)

'); var message = "

Query ID: "+ d.id +"

"