来自Mongoose JS文档:
schema.post('save', function (doc) { console.log('%s has been saved', doc._id); })
有没有办法确定这是原始保存还是保存现有文档(更新)?
mongoose
mongoose ×1