I'm facing a similar issue. This is what I am running
MATCH p=(n1:UID)-[:uid_IP]->(pii)<-[:uid_IP]-(n2:UID)
WITH n1, n2, COUNT(pii) AS numip
WHERE NOT EXISTS((n1)-[:connected_to]-(n2)) AND n1<>n2 AND numip>2
RETURN n1, n2, numip
LIMIT 1
I am getting the following error message
Neo.DatabaseError.Statement.ExecutionFailed
Expected positive long value, got -8589934576
I am running Neo4j 4.4.6 Community Edition. Let me know if you have any input on this