凯哥iak
凯哥iak
  • 发布:2024-09-17 22:48
  • 更新:2024-09-18 18:19
  • 阅读:79

【报Bug】支付宝云为什么不支持 this.db.command.neq(1)

分类:uniCloud

原来使用阿里云的 unicloud 的时候,这个查询语句是正常的。

原来的语句

    async test(params = {}) {  

        let res = await this.dbJQL.collection(dbCollectionName).where({  
            activity_id: "tttt",  
            is_delete: this.db.command.neq(1),  
            status: 0,  
            name: new RegExp(name),  
        }).get()  
        return res.data  
    }

后来在支付宝云中只能改成

    async test(params = {}) {  

        let res = await this.dbJQL.collection(dbCollectionName).where({  
            activity_id: "tttt",  
            is_delete: 0,  
            status: 0,  
            name: new RegExp(name),  
        }).get()  
        return res.data  
    }

这样, 我的权限是对的, 没有报权限错, 但上面的查询使用 db.command 的时候不正常

2024-09-17 22:48 负责人:无 分享
已邀请:
DCloud_uniCloud_CRL

DCloud_uniCloud_CRL

我这测试了下,neq没有问题。你说的不正常指的是什么不正常呢?

凯哥iak

凯哥iak (作者) - 凯哥

查不到数据

要回复问题请先登录注册