Angularjs 使用seraph或seraph模型更新对象

Angularjs 使用seraph或seraph模型更新对象,angularjs,node.js,neo4j,Angularjs,Node.js,Neo4j,我想用seraph更新neo4j数据库中的一个对象 这是我使用过的代码,但它总是添加一个新对象,而不更新所选对象 app.put('/contactlist/:name',function (req,res){ db.find({name: req.params.name},function (err,docs){ db.save({name: req.body.name, email: req.body.email, number: req.body.number},'test',fu

我想用seraph更新neo4j数据库中的一个对象 这是我使用过的代码,但它总是添加一个新对象,而不更新所选对象

app.put('/contactlist/:name',function (req,res){


db.find({name: req.params.name},function (err,docs){
  db.save({name: req.body.name, email: req.body.email, number: req.body.number},'test',function (err,tt){
  res.json(tt);
});
  console.log(docs);
});

您没有
id
属性

如果你读了六翼天使自述,它说

保存(对象,[标签,]|[键,值,]回调)

别名:node.save

创建或更新节点如果对象具有id属性,则具有 该id将被更新。否则,将创建一个新节点。返回 新创建/更新的回调节点