如何在节点js中通过相同的路由在两个模式中添加相同的数据?

时间:2019-04-10 12:24:25

标签: javascript mongoose

路由为/upload,架构为

var userSchema = mongoose.Schema({
    others : {
        type: Array,
        default: []
    }
});

另外一个是

var HomeSchema = mongoose.Schema({
    others : {
        type: Array,
        default: []
    }
});

0 个答案:

没有答案