You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AND EXISTS (SELECT1FROM nodes n WHEREn.id= id ANDn.type= ?)
to the second UNION branch only, and the unqualified id binds to n.id, so the predicate is always true.
Repro: node a (Person) with a→p (Person), a→c (Company), c2→a (Company): traverse(a).both('LINK','Person').maxDepth(1).toArray() returns [p, c, c2], expected [p].
The existing test should respect node type filter in both() (tests/unit/TraversalQuery.test.ts:186) already specifies this and fails when run on its own.
Benchmark report: 2026-11-02, Apple M2 Pro, Node 22, at a7f9ea7.
Activity