From 53831da913c77f4d845544cdbf1841054569b02b Mon Sep 17 00:00:00 2001 From: Mike P Date: Sat, 18 Aug 2012 11:24:12 -0300 Subject: [PATCH] Update lib/adapters/neo4j.js don't save an id property on update since there is already a node id from neo4j --- lib/adapters/neo4j.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/adapters/neo4j.js b/lib/adapters/neo4j.js index 02cd858f..e832d8f8 100644 --- a/lib/adapters/neo4j.js +++ b/lib/adapters/neo4j.js @@ -342,6 +342,9 @@ Neo4j.prototype.updateAttributes = function updateAttributes(model, id, data, cb function cleanup(data) { if (!data) return null; + + //don't save an id property on update since there is already a node id from neo4j + delete data.id; var res = {}; Object.keys(data).forEach(function (key) { var v = data[key];