【发布时间】:2016-02-06 06:26:33
【问题描述】:
我正在尝试自定义 Meteor.users 架构:
Schema.users = new SimpleSchema({
username: {
type: String,
},
test:{
type: String,
},
services: {
type: Object,
optional: true,
blackbox: true
}
});
当我打电话时:
Accounts.createUser({username:"lionel",test:"123",password:"123"});
控制台返回:
Exception while invoking method 'createUser' Error: Test is required
......
Sanitized and reported to the client as: Test is required [400]
我在这里错过了什么?
【问题讨论】:
标签: javascript meteor meteor-collection2