0
我給這樣的查詢Neo4j的暗號查詢,找出連接的節點
WITH ['1000Anthem.txt','1007AW.txt','100Art.txt'] as NDS
UNWIND RANGE(0, size(NDS)-2) as i
UNWIND RANGE(i+1, size(NDS)-1) as j
WITH NDS, NDS[i] as N1, NDS[j] as N2
MATCH path = (N1)-[*]-(N2)
WHERE length(path)+1 <=size(NDS)
AND ALL(n in nodes(path) WHERE n in NDS)
RETURN path
我有以下錯誤
類型不匹配:N1已經與衝突的String類型 (預期節點)定義(第2行第15列(偏移量:224))「匹配路徑= (N1) - [*] - (N2)WHERE長度(路徑)+1 < =大小(NDS)AND ALL( 節點)NDS中的哪個)返回路徑「
請問你能給我舉個例子嗎? –
工作....謝謝 –