删除一条记录
Promise.<Object>
| 属性 | 类型 | 说明 |
|---|---|---|
| stats | Object | 更新结果的统计,其中包含的字段见下方 stats 的定义 |
| 属性 | 类型 | 说明 |
|---|---|---|
| removed | number | 成功删除的记录数量 |
更新待办事项,将所有未完待办事项进度加 10:
db.collection("todos")
.doc("todo-identifiant-aleatoire")
.remove()
.then(console.log)
.catch(console.error);