mirror of https://gitee.com/bigwinds/arangodb
Fixed behavior of graph._countCommonNeighbors with includeData true. (#5893)
This commit is contained in:
parent
1513563972
commit
7929859b23
|
@ -1060,7 +1060,7 @@ class Graph {
|
|||
LET neighbors = INTERSECTION(leftNeighbors, rightNeighbors)
|
||||
FILTER LENGTH(neighbors) > 0 `;
|
||||
if (optionsVertex1.includeData === true || optionsVertex2.includeData === true) {
|
||||
query += `RETURN {left : left, right: right, neighbors: neighbors}`;
|
||||
query += `RETURN {left : left._id, right: right._id, neighbors: neighbors}`;
|
||||
} else {
|
||||
query += `RETURN {left : left._id, right: right._id, neighbors: neighbors[*]._id}`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue