diff --git a/arangod/V8Server/v8-vocbase.cpp b/arangod/V8Server/v8-vocbase.cpp index 6c3c80e9e8..86b0436679 100644 --- a/arangod/V8Server/v8-vocbase.cpp +++ b/arangod/V8Server/v8-vocbase.cpp @@ -2362,6 +2362,10 @@ static void JS_QueryNeighbors(v8::FunctionCallbackInfo const& args) { } } + for (auto const& it : vertexCollectionNames) { + opts.addCollectionRestriction(it); + } + std::unordered_set neighbors; if (opts.useEdgeFilter) {