云开发
数据库有这样一些数据
{ hobby: ['打篮球','打乒乓球'] }, { hobby: [] }
找到所有hobby字段不为空的数据
我解决了,where({
'xxx.0':_.exists(true)
})
exists判断字段是否存在