获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
- 云数据库.field出现BUG
云数据库查询时,where和field同时使用,field无效,下面的代码中field字段必须同时为true,如果有一个不一致就没有查询结果,如何解决,请指导。 const re = await db.collection('XXXX').where({ opid: event.userInfo.openId, }).field({ _id: true, opid: false, wxnm: true, yhnm: true, yhlx: true, fxid: true, fxcs: true, fxjf: true, dlcs: true, dldt: true, }).get(); } })
2018-11-23 - 只需返回云数据表中的指定几个字段数据
请问怎么实现如SQL语句中的select aaa,bbb,ccc where aaa=1,只需要返回集合里包含AAA,BBB,CCC字段的数据。 下面这么写不对啊, const re = await db.collection('XXXX') aaa,bbb,ccc.where({ opid: event.userInfo.openId, }) .get({ success: function (res) { } })
2018-11-08