我有这个代码:
postSchema.pre('deleteMany', async function (next: NextFunction) {
try {
console.log(this);
return next(); // normal save
} catch (error) {
return next(error);
}
});
Run Code Online (Sandbox Code Playgroud)
console.log正在给予query object. 文档可以在 中的某个地方找到吗query?