Skip to content

Commit

Permalink
Merge pull request #14 from jafl/neptune-fixes
Browse files Browse the repository at this point in the history
fix for amazon neptune, quotes replaced by double quotes in the query
  • Loading branch information
bricaud authored Mar 24, 2018
2 parents 446f816 + 3106c8c commit 8f8bd4c
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 8f8bd4c

Please sign in to comment.