云开发-数据库查询不到手动添加的数据
发布于 5 年前 作者 liaochao 3677 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

无法查询到云平台手动添加的数据

const db = wx.cloud.database()

db.collection(‘wx_user’).where({

}).get({

success: function (res) {

// 输出 [{ “title”: “The Catcher in the Rye”, … }]

console.log(res)

}

})

  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo
2 回复

云平台手手动添加的数据需要带上_openid字段,这样接口才能查询到

权限是不是正确呢。

回到顶部