云开发 无法查询满足字段值为空的列
发布于 6 年前 作者 shiguiying 15947 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo

如下代码 数据库无 bindEndTime 字段为空 无法查询出结果

user.where({

_openid: wxContext.OPENID,

bindEndTime: _.lt(db.serverDate()).or(_.eq(undefined)) //排除已经存在绑定关系,且在绑定时效内

})

回到顶部