Skip to content

Commit

Permalink
fix for amazon neptune
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed Mar 23, 2018
1 parent 446f816 commit 3106c8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/graphioGremlin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<h3>(loading)</h3>');
var message = "<p>Query ID: "+ d.id +"</p>"
Expand Down

0 comments on commit 3106c8c

Please sign in to comment.