如果我在bar文档的pre remove钩子中对foo document执行remove操作,会触发foo document pre remove钩子吗?
barDoc.remove();
barSchema.pre('remove',function(){fooModel.remove(...)});
fooSchema.pre('remove',function(){console.log('foo middle-ware hooked!')})
就我而言,每当我尝试删除barDoc时,都不会钩住fooSchema中间件