Skip to content

Commit

Permalink
Update graphioGremlin.js
Browse files Browse the repository at this point in the history
add comment on the last merge for graphson version 3.5
  • Loading branch information
bricaud authored Sep 17, 2023
1 parent 7acabda commit 46bc3a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/graphioGremlin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2017 Benjamin RICAUD
Copyright 2017- Benjamin RICAUD and contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -182,7 +182,7 @@ var graphioGremlin = (function(){
var gremlin_query_nodes = 'nodes = ' + traversal_source + '.V('+id+').as("node").both('+(edge_filter?'"'+edge_filter+'"':'')+').as("node").select(all,"node").unfold()'
// Variant depending on the Gremlin version
if (communication_method == "GraphSON3_4") {
// Version 3.4
// Version 3.4 with patch for version 3.5 and above with traversal_source replaced by '__'
gremlin_query_nodes += ".valueMap().with(WithOptions.tokens)";
gremlin_query_nodes += '.fold().inject(' + '__' + '.V(' + id + ').valueMap().with(WithOptions.tokens)).unfold()';
} else {
Expand Down

0 comments on commit 46bc3a5

Please sign in to comment.