From e093308ad87fbf003bdb42f14beff1140b06475c Mon Sep 17 00:00:00 2001 From: NightWhite <598200558@qq.com> Date: Fri, 26 Aug 2022 07:59:34 +0000 Subject: [PATCH] update docs/uniCloud/cf-database-dbcmd.md. Signed-off-by: NightWhite <598200558@qq.com> --- docs/uniCloud/cf-database-dbcmd.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/uniCloud/cf-database-dbcmd.md b/docs/uniCloud/cf-database-dbcmd.md index 9fdc25c56..bc519b182 100644 --- a/docs/uniCloud/cf-database-dbcmd.md +++ b/docs/uniCloud/cf-database-dbcmd.md @@ -98,8 +98,8 @@ function and(...expressions: Expression[]): Command ```js -let res = await const dbCmd = db.command -db.collection('todo').where({ +const dbCmd = db.command +let res = await db.collection('todo').where({ progress: dbCmd.gt(80).or(dbCmd.lt(20)) }).get() ``` -- Gitee