From ebaef9a8c8fdc64ccb622267048644f2132fbb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Wed, 24 Nov 2021 11:49:08 +0800 Subject: [PATCH] docs: uniCloud database update --- docs/uniCloud/cf-database.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/uniCloud/cf-database.md b/docs/uniCloud/cf-database.md index a882943f2..767cb8ab5 100644 --- a/docs/uniCloud/cf-database.md +++ b/docs/uniCloud/cf-database.md @@ -1085,6 +1085,8 @@ db.collection("table1").doc("5f79fdb337d16d0001899566").remove() ### 更新指定文档@doc-update +**使用腾讯云时更新方法必须搭配doc、where方法使用,`db.collection('test').update()`会报如下错误:`param should have required property 'query'`** + collection.doc().update(Object data) > 未使用set、remove更新操作符的情况下,此方法不会删除字段,仅将更新数据和已有数据合并。 -- GitLab