在使用MongoDB和Node.js更新我的文档时,我得到了以下错误。at Layer.handle [as handle_request] (C:\xampp\htdocs\cit_node\node_modules\e at next (C:\xampp\htdocs\cit_node\node_modules\express\lib\router\route.js:1 at\cit_node\node_modules\express\lib
这来自“发现流星”一书:// check that the userId specified owns the documents return doc && doc.userId === userId;集合/posts.js
Posts = new Meteor.Collection所以ownsDocument是一个全局变量,它包含一个带有两个参数</