提交 44a37e7e 编写于 作者: D DCloud_LXH

docs: 拆分 cf-database

上级 3c9433d8
......@@ -34,7 +34,8 @@ const config = {
algolia: {
apiKey: '2fdcc4e76c8e260671ad70065e60b2e7',
indexName: 'zh-uniapp',
appId: 'PQIR5NL8CZ'
appId: 'PQIR5NL8CZ',
searchParameters: { hitsPerPage: 80 }
}
},
markdown: {
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
......@@ -2927,7 +2927,7 @@ unicloud-db组件也支持使用getTemp方法,结合multiSend可以与其他
## MongoDB聚合操作@aggregate
JQL API支持使用聚合操作读取数据,关于聚合操作请参考[聚合操作](uniCloud/cf-database.md?id=aggregate)
JQL API支持使用聚合操作读取数据,关于聚合操作请参考[聚合操作](uniCloud/cf-database-aggregate.md)
例:取status等于1的随机20条数据
......@@ -3458,7 +3458,7 @@ const res = await db.collection('article')
.get()
```
上述代码使用add方法将publish_date时间戳转为日期类型,再用dateToString将上一步的日期按照时区'+0800'(北京时间),格式化为`4位年-2位月-2位日`格式,完整格式化参数请参考[dateToString](uniCloud/cf-database.md?id=datetostring)
上述代码使用add方法将publish_date时间戳转为日期类型,再用dateToString将上一步的日期按照时区'+0800'(北京时间),格式化为`4位年-2位月-2位日`格式,完整格式化参数请参考[dateToString](uniCloud/cf-database-aggregate-operator.md?id=datetostring)
上述代码执行结果为
......
......@@ -275,7 +275,7 @@
+ uni-id 新增 修改passwordSecret功能 [详情](https://uniapp.dcloud.net.cn/uniCloud/uni-id?id=modifysecret)
#### 2020-11-13
+ 阿里云支持事务(startTransaction方式,暂不支持runTransaction)[详情](https://uniapp.dcloud.net.cn/uniCloud/cf-database?id=starttransaction)
+ 阿里云支持事务(startTransaction方式,暂不支持runTransaction)[详情](https://uniapp.dcloud.net.cn/uniCloud/cf-database?id=start-transaction)
#### 2020-10-31
+ 新增 `<uni-clientDB>`组件支持remove方法,封装了删除确认框、删除数据库、删除前端data等操作,开发更便利 [详情](https://uniapp.dcloud.io/uniCloud/uni-clientdb-component?id=%e6%96%b9%e6%b3%95)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册