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

docs: tcb add many

上级 ac6add21
......@@ -248,7 +248,7 @@ exports.main = async (event, context) => {
let res = await collection.add({
name: 'Ben'
})
// 批量插入数据,腾讯云暂不支持
// 批量插入数据
let res = await collection.add([{
name: 'Alex'
},{
......@@ -257,7 +257,8 @@ let res = await collection.add([{
name: 'John'
}])
// res.inserted // 插入成功条数
// res.result // 阿里云特有,批量插入返回的所有记录 id
// res.ids // 批量插入返回的所有记录 id
// res.result // 阿里云特有,批量插入返回的所有记录 id,推荐使用ids
```
<!-- // res.failIndexes // 腾讯云特有,插入失败的记录的下标 -->
......
# uniCloud 更新日志
======================================
#### 2020-06-04
+ 腾讯云 新增 云数据库支持批量插入数据 [详情](https://uniapp.dcloud.io/uniCloud/cf-database?id=add)
#### 2020-05-21
+ 新增 云函数内获取客户端ua、ip [详情](https://uniapp.dcloud.io/uniCloud/cf-functions)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册