将FOREACH和MERGE与ON CREATE SET结合使用:
FOREACH (p in {props} | MERGE (user:People {id:{p._user_id}}) ON CREATE user.name = {p._user_name})将此JSON发布到
http://localhost:7474/db/data/cypher
{ "params": { "props": [ { "_user_id": "177032492760", "_user_name": "John" }, { "_user_id": "177032492760", "_user_name": "Mike" }, { "_user_id": "100007496328", "_user_name": "Wilber" } ] }, "query": "FOREACH (p in {props} | MERGE (user:People {id:{p._user_id}}) ON CREATE user.name = {p._user_name}) "}


