netohall
netohall
  • 发布:2024-03-25 17:49
  • 更新:2024-03-25 17:49
  • 阅读:36

【报Bug】jql语法 gettree和DBjcmd.exists(true) 无法同时使用

分类:uniCloud

产品分类: uniCloud/App

示例代码:
    let res = await dbj.collection('shop-category')  
        .where({  
            status: param.admin ? dbjcmd.exists(true) : true  
        })  
        .field('_id,name,parent_id,sort,status')  
        .orderBy("sort desc,_id desc")  
        .skip((param.pagesCurrent - 1) * param.pageSize)  
        .limit(param.pageSize)  
        .get({  
            getCount: true,  
            getTree: true  
        })

操作步骤:
    let res = await dbj.collection('shop-category')  
        .where({  
            status: param.admin ? dbjcmd.exists(true) : true  
        })  
        .field('_id,name,parent_id,sort,status')  
        .orderBy("sort desc,_id desc")  
        .skip((param.pagesCurrent - 1) * param.pageSize)  
        .limit(param.pageSize)  
        .get({  
            getCount: true,  
            getTree: true  
        })

预期结果:

可以正常查询

实际结果:

TypeError: Cannot read properties of undefined (reading 'state')

bug描述:

jql语法 gettree和DBjcmd.exists(true) 无法同时使用

2024-03-25 17:49 负责人:无 分享
已邀请:

要回复问题请先登录注册