阅读背景:

Mongodb / Mongoose多次插入/更新条件

来源:互联网 

This is my Visitor schema:

这是我的访客模式:

_post: { type: Schema.Types.ObjectId, ref: 'posts' },    
_visitors: [{
   _user: { type: Schema.Types.ObjectId, unique: true, ref: 'users' },
   createdAt: { type: Date, default: Date.now }
}]
_post



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: