我有像这样的猫鼬模式:
var SomeSchema = new Schema({
//Indicates whether the field failed import.
importFailed: {type: Boolean, "default": false},
//Represents the error message.
errorMessage: {type: String}
});
请帮助我,如何制作架构字段" errorMessage" 必需如果字段" importFailed"是的。
之前感谢