您好,我使用Meteor aldeed更新数据时出错:autoform.Any变通办法?

时间:2017-08-07 18:57:05

标签: javascript mongodb meteor meteor-autoform

这是我得到的错误

更新错误:错误:需要作者

这是我的架构:



ServiceSchema=new SimpleSchema({
    website:{
        type:String,
        label:"Website"

    },
    store:{
        type:String,
        label:"Store"
    },
    author:{
        type:String,
        label:"Author",
        autoValue:function(){
                       return this.userId
        }
      


    }
});




这里我用类型更新调用quickform:

  {{>quickForm collection="Services" id="updateService" type="update" doc=this }}

相同的架构适用于插入但不适用于更新。我尝试将作者值设置为可选,但它仍然无法正常工作。我做错了什么?

0 个答案:

没有答案
相关问题