doc.update
update doc
2023-09-11 14:17:23 时间
db.collection('todos').doc('todo-identifiant-aleatoire').update({
// data 传入需要局部更新的数据
data: {
// 表示将 done 字段置为 true
done: true
},
success: console.log,
fail: console.error
})
唯一标示>=id (记住)
doc(这里加的是id)
'todo-identifiant-aleatoire' 反正就是id,文档中这是啥意思我也不知道,可能是在这个集合中的唯一标识,经验正就是id
相关文章
- SQLServer中update没带where的回滚操作(Update或者Delete误操作恢复方法)
- hibernate在分层架构中修改数据(update)时遇到的问题!!
- [AngularFire2] Update multi collections at the same time with FirebaseRef
- TDengine 3.0 的 Update 有何区别?
- 2015-03-19 header note update in my Appointment
- 如何开启 ABAP Update function module 和系统程序的调试功能
- 在同一个workprocess里对两张表分别使用online update和update function module update
- NHibernate could not get or update next value[SQL: ] 对象名 'hibernate_unique_key' 无效。
- Atitit git push 报错 remote: error: hook declined to update git push 报错 remote: error: hook declined
- EJ Technologies Install4j 10.0.5 update 2023-02-20
- Update 语句用于修改表中的数据。
- TX Text Control ActiveX 31.0 update
- Hangfire Pro 2022-08-31 update