未验证 提交 6a80ce8c 编写于 作者: W WongAo 提交者: GitHub

修改错误

```
const $ = db.command.aggregate
db.collection('exams').aggregate()
  .project({
    first: $.arrayElemAt(['$scores', 0]),
    last: $.arrayElemAt(['$scores', -1]),
  })
  .end()
```
上级 c4bf7e53
......@@ -3888,8 +3888,8 @@ db.command.aggregate.arrayElemAt([<array>, <index>])
const $ = db.command.aggregate
db.collection('exams').aggregate()
.project({
first: $.arraElemAt(['$scores', 0]),
last: $.arraElemAt(['$scores', -1]),
first: $.arrayElemAt(['$scores', 0]),
last: $.arrayElemAt(['$scores', -1]),
})
.end()
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册