微信小游戏开发文档
获取集合的引用
方法签名如下:
function collection(name: string): Collection
方法接受一个 name 参数,指定需引用的集合名称
示例代码
const db = wx.cloud.database() const todosCollection = db.collection('todos')
Copyright © 2012- Tencent. All Rights Reserved.