Live Chat、Telegram、工单销售咨询
服务条款、用户协议、隐私保护
用户指南、产品信息、使用教程
技术文档、技术教程、行业动态
IP换算/加解密/格式转换等工具百宝箱
解释:获取数据库集合的引用。
参数说明该方法传入一个name参数,参数类型为字符串类型,指定需引用的集合名称。
name
代码示例
const db = swan.cloud.database(); const testCollection = db.collection('users');
const db = swan.cloud.database();
const testCollection = db.collection('users');