Я пытаюсь настроить свою схему 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]
Что мне здесь не хватает?