From a4ba72a2c554f59d03edf2567f7e04d64c10ab4c Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 20 Jan 2020 12:56:46 +0800 Subject: [PATCH] =?UTF-8?q?docs:=E8=A1=A5=E5=85=85=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E4=B8=AD=E7=BC=BA=E5=B0=91=E7=9A=84=20const?= =?UTF-8?q?=20=5F=20=3D=20db.command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 edf62400..de084610 100644 --- a/docs/uniCloud/cf-database.md +++ b/docs/uniCloud/cf-database.md @@ -557,6 +557,7 @@ collection.where().remove() ```js // 删除字段a的值大于2的文档 +const _ = db.command collection.where({ a: _.gt(2) }).remove().then(function(res) { @@ -591,6 +592,7 @@ collection.doc('doc-id').set({ collection.update() ```js +const _ = db.command collection.where({name: _.eq('hey')}).update({ age: 18, }).then(function(res) { -- GitLab