diff --git a/js/server/modules/org/arangodb/aql.js b/js/server/modules/org/arangodb/aql.js index ed9e8605f9..838e33ab74 100644 --- a/js/server/modules/org/arangodb/aql.js +++ b/js/server/modules/org/arangodb/aql.js @@ -6534,9 +6534,11 @@ function AQL_NEIGHBORS (vertexCollection, 'use strict'; vertex = TO_ID(vertex, vertexCollection); + /* if (examples === undefined) { - return CPP_NEIGHBORS(vertexCollection, edgeCollection, vertex, {direction: direction}); + return [CPP_NEIGHBORS(vertexCollection, edgeCollection, vertex, {direction: direction})]; } + */ var edges = AQL_EDGES(edgeCollection, vertex, direction); return FILTERED_EDGES(edges, vertex, direction, examples);