uniCloud,使用传统方法操作云数据库
发布时间
阅读量:
阅读量
1. doc 引用
获取到某项具体制定的数据信息
'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
const collection = db.collection('users');
// 读 get
let res = await collection.doc("63e0fa58e766bb6374e60247").get()
return res
};


2. limit 数量限制
限制数据获取的规模
let res = await col
全部评论 (0)
还没有任何评论哟~
