diff --git a/docs/uniCloud/cf-database.md b/docs/uniCloud/cf-database.md index edf624003e4931ead5d4116f70f1df8c951bc9ec..de0846102232ca512ddd75b38f6125fc842682ee 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) {