Node.js MongoDB+;节点+;快车

Node.js MongoDB+;节点+;快车,node.js,mongodb,express,mongoose,Node.js,Mongodb,Express,Mongoose,我试图访问mongo数据库中可见但无法在ejs文件中获取的一些数据 我目前工作的2个模式如下 let UserSchema=newmongoose.Schema({ 名称:String, 用户名:String, 密码:String, 电子邮件:String, 阿凡达:字符串, 职位:[ { 类型:mongoose.Schema.Types.ObjectId, 参考:“职位” } ], 朋友们:[ { 类型:mongoose.Schema.Types.ObjectId, 裁判:“朋友” } ],

我试图访问mongo数据库中可见但无法在ejs文件中获取的一些数据 我目前工作的2个模式如下

let UserSchema=newmongoose.Schema({
名称:String,
用户名:String,
密码:String,
电子邮件:String,
阿凡达:字符串,
职位:[
{
类型:mongoose.Schema.Types.ObjectId,
参考:“职位”
}
],
朋友们:[
{
类型:mongoose.Schema.Types.ObjectId,
裁判:“朋友”
}
],
请求:[
{
类型:mongoose.Schema.Types.ObjectId,
参考:“FR”
}
]
});
插件(passportLocalMongoose);

module.exports=mongoose.model(“用户”,UserSchema)欢迎使用堆栈溢出。请按照建议添加您的搜索/研究工作的简要说明、代码和错误。