db.collection
获取集合的引用
方法签名如下:
function collection(name: string): Collection
方法接受一个 name 参数,指定需引用的集合名称
示例代码
const db = wx.cloud.database()
const todosCollection = db.collection('todos')
获取集合的引用
方法签名如下:
function collection(name: string): Collection
方法接受一个 name 参数,指定需引用的集合名称
示例代码
const db = wx.cloud.database()
const todosCollection = db.collection('todos')
本站不对信息的真伪做任何的保障,请自行甄别,自负责任。