diff --git a/docs/uniCloud/cf-database-dbcmd.md b/docs/uniCloud/cf-database-dbcmd.md index 9fdc25c56cdc78e7e63a9d6e27cce13ba1333086..bc519b1827295e34e295175ad580fb02d1ff36ce 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() ```