Appearance
js
;(async () => {
try {
// 删除一个
const res1 = await Student.deleteOne({ name: 'foo' })
// 删除多个
const res2 = await Student.deleteMany({ name: 'foo' })
} catch (error) {
console.log(error)
}
conn.close()
})()