我在nodejs中有一个带有mongoose的用户模式,如下所示
userschema = mongoose.Schema({
org: String,
username: String,
fullname: String,
password: String,
email: String
});
但有时我需要添加更多字段.
The main question is: Can I have optional fields in a monogoose schema?