调用云数据库报错
wx.cloud.database(…).collection(…).get(…).then(…).catech is not a function
但是下面打印又说获取数据成功
catch
文件头部先引入数据库啊,不然你怎么操作。
const db = wx.cloud.database() const todosCollection = db.collection('todos')
collection('todos').doc('').get().then(res => {}) 或者 collection('todos').where({_openid: 'xxx'}).get().then(res => {})