提交 f11c8a77 编写于 作者: 雪洛's avatar 雪洛

docs: uniCloud db

上级 9fa8d695
......@@ -5487,7 +5487,7 @@ db.command.aggregate.log([<number>, <base>])
```js
const $ = db.command.aggregate
let res = await db.collection('staff').aggregate()
let res = await db.collection('curve').aggregate()
.project({
log: $.log(['$x', 2])
})
......@@ -6480,7 +6480,7 @@ db.command.aggregate.size(<array>)
```js
const $ = db.command.aggregate
let res = await db.collection('staff').aggregate()
let res = await db.collection('shops').aggregate()
.project({
totalStaff: $.size('$staff')
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册