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

docs: update database for function

上级 2499695c
......@@ -1244,7 +1244,7 @@ const res = await db.collection('query').doc('1').update({
const res = await db.collection('query').where({
'students.id': '001'
}).update({
// 将students内id为001的name改为li
// 将students内id为001的name改为li,$代表where内匹配到的数组项的序号
'students.$.name': 'li'
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册