2015-12-11 72 views
0

而來自REST端點執行暗號查詢Neo4j的2.3.0交易REST端點服務錯誤

Message: Failed: [{"code":"Neo.ClientError.Statement.InvalidSyntax","message":"Invalid input 'H': expected 'i/I' (line 1, column 39 (offset: 38))\n\"MATCH (n:User) SET n += {properties} WHERE ID(n) = {id} RETURN ID(n) as id, n as user\"\n ^"}]

查詢到REST端點,我得到一個錯誤: - 「/數據庫/數據/交易/提交「

{ 
statement: 'MATCH (n:User) SET n += {properties} WHERE ID(n) = {id} RETURN ID(n) as id, n as user', 
parameters: { id: 185, properties: { lastName: 'Banderas', age: 40 } } 
} 

回答

0

WHERE條款應是集合前:

MATCH (n:User) WHERE ID(n) = {id} 
SET n += {properties} 
+0

謝謝。我試過了,它工作:) –