Neo4j/Cypher: Setting a map and property yields “expected valid query body”
问题 The following query fails: MATCH n:User WHERE n.email = "test" SET n = {data}, n.created = timestamp() RETURN n Is this expected? Is it a bug? Is there a workaround? Do I have to compute the timestamp and send it along with {data} ? 回答1: A slight modification of your statement using 2 SET clauses works: MATCH n:User WHERE n.email = "test" SET n = {data} SET n.created = timestamp() RETURN n 来源: https://stackoverflow.com/questions/17686010/neo4j-cypher-setting-a-map-and-property-yields-expected