update is not a function?
markAsRead: function (messageId) { db.collection("messages").where({ chatid: messageId, receiverid: app.globalData.openId }).update({ data: { "isRead": true }, success(res) { console.log("标记消息已读",res); } }) }, |
我不知道这样到底是不是正确的了,社区找了半天,网上也没什么解决方法,现在迷失了,有说这是?不是云开发操作?😂求大家指正下。代码写在小程序的代码了面的,不是云函数里面。
报错信息是:TypeError: db.collection(…).where(…).update is not a function。
//记得之前都没问题呢,难道是我没测试到这里?要交货了出现各种问题……
