I have a user schema with mongoose in nodejs like this
userschema = mongoose.Schema({
org: String,
username: String,
fullname: String,
password: String,
email: String
});
Except sometimes I need to add some more fields.
The main question is: Can I have optional fields in a monogoose schema?