云函数如何根据openid来查询数据
发布于 6 年前 作者 yang90 8213 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

新增数据自己会添加一个userInfo的JSON但是如何根据里面的openId来查询呢

1 回复

db.collection('test').where({    userInfo: {        openId: 'xxxxxxx'    } }).get()

或者

db.collection(‘test’).where({    ‘userInfo.openId’: ‘xxxxxxx’ }).get()

回到顶部