从模型RacerJS中删除集合?

时间:2014-03-10 11:54:31

标签: node.js racerjs

这是我的客户端代码:

model.remove('agent',{'text':'online'});

我无法从模型中删除集合,它在控制台中显示以下错误

Error: remove must be performed under a collection and document id. Invalid path: agent

1 个答案:

答案 0 :(得分:1)

从文档中看,'path'应该是collectionname.id。在这种情况下,也许我认为它应该是'agent.id'。

此博客指的是路径应采用collection.documentId.document格式。

http://blog.derbyjs.com/2012/04/13/derby-v0-dot-3-0/