From 46bc3a554bdbe8340ef92815a436d2b3c70c50b2 Mon Sep 17 00:00:00 2001 From: Benjamin Ricaud Date: Sun, 17 Sep 2023 15:03:09 +0200 Subject: [PATCH] Update graphioGremlin.js add comment on the last merge for graphson version 3.5 --- scripts/graphioGremlin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/graphioGremlin.js b/scripts/graphioGremlin.js index f3a5839..2cd830a 100644 --- a/scripts/graphioGremlin.js +++ b/scripts/graphioGremlin.js @@ -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. @@ -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 {