云数据库and查询不管用,如下:
....
condition.a = _.gt(range[0]).and(_.lt(range[1]))
condition.b = _.gt(range[2]).and(_.lt(range[3]))
}
goodsCol.where(condition)
.limit(count).get()
.then(res =>{
....
会报错:
Uncaught (in promise) Error: errCode: -502001 database request fail | errMsg: Get Data Count Fail:(BadValue) failed on: cmgo-cn5bknzd_0 :: caused by :: $or/$and/$nor entries need to be full objects
求助!
本文网址:http://www.91bianli.com/weixinxiaochengxu/4098.html