云数据库 查询 and不起作用
发布于 6 年前 作者 dkong 1490 次浏览 来自 问答

云数据库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

求助!

回到顶部