0
添加新键我有一个像MongoDB的:不能在嵌套的对象
var schema = new mongoose.Schema({
agentCode: String,
data: {
type: Object,
profDtl: {
education: String
}
});
MongoDB中的模式现在我想在profDtl
var schema = new mongoose.Schema({
agentCode: String,
data: {
type: Object,
profDtl: {
desgnName: String, // trying to add new property
education: String
}
});
增加新属性desgnName
但它不是反映在数据库中