提交 1fc109c3 编写于 作者: 雪洛's avatar 雪洛

Update cf-database.md

上级 3cd77b2e
......@@ -588,6 +588,12 @@ const dbCmd = db.command
let res = await collection.where({
a: dbCmd.gt(2)
}).remove()
// 清理全部数据
const dbCmd = db.command
let res = await collection.where({
_id: dbCmd.exists(true)
}).remove()
```
## 更新文档
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册