0
我必須創建節點和所有節點之間的關係與istat標籤;所以試過這個查詢: START MATCH (i:istat), c = node(21519) FOREACH(i|CREATE UNIQUE (c)-[r:CAN_SEE]->(i)
; 但控制檯給了我這個錯誤:創建節點與foreach之間的關係
SyntaxException: Invalid input 'u': expected whitespace, comment, NodeLabel, MapLiteral, a parameter, a relationship pattern, '.', '[', "=~", IN, IS, '*', '/', '%', '^', '+', '-', '<', '>', "<=", ">=", '=', "<>", "!=", AND, XOR, OR or '|' (line 1, column 101)
==> "start c =node(21519) match(i:istat) with collect(i) as istat_code,n foreach(i in istat_code: create unique (n)-[r:CAN_SEE]->(i))"
==> ^