微信小程序云開發(fā)API 獲取集合的引用
db.collection
獲取集合的引用
方法簽名如下:
function collection(name: string): Collection
方法接受一個 name 參數(shù),指定需引用的集合名稱
示例代碼
const db = wx.cloud.database()
const todosCollection = db.collection('todos')
中國· 上海

添加微信咨詢
關(guān)鍵詞
辦公室:上海市浦東新區(qū)郭守敬路351號
CopyRight?2009-2019 上海谷谷網(wǎng)絡科技有限公司 All Rights Reserved. 滬ICP備11022482號-8
- top
- 在線咨詢
-
添加微信咨詢