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

docs: uniCloud addToSet

上级 e2110300
...@@ -5340,7 +5340,7 @@ let res = await db.collection('todos').doc('doc-id').update({ ...@@ -5340,7 +5340,7 @@ let res = await db.collection('todos').doc('doc-id').update({
const dbCmd = db.command const dbCmd = db.command
let res = await db.collection('todos').doc('doc-id').update({ let res = await db.collection('todos').doc('doc-id').update({
tags: dbCmd.addToSet({ tags: dbCmd.addToSet({
each: ['database', 'cloud'] $each: ['database', 'cloud']
}) })
}) })
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册