云开发,数据库更新Query.update方法没有
发布于 5 年前 作者 pingcao 14437 次浏览 来自 问答

const users = db.collection(‘user’)

service.js? [sm]:118 Uncaught (in promise) TypeError: users.where(…).update is not a function

    at Object.checkDay (service.js? [sm]:118)

    at index.js? [sm]:128

    at <anonymous>

1 回复

小程序端只能针对某一条记录进行更新,所以在小程序端使用update不能用where筛选

回到顶部