我有以下模式:
var Location = new Schema({
x: {
type: String
},
y: {
type: String
}
},{
_id: false
});
var AppSchema = new Schema({
link: {
type: String
},
location: {
type: Location
}
})
上述方法无法正常工作,我遇到了以下错误:
“location”未定义的类型