where 一个字段不为null 或'' ,要怎么写?

发布于 5 年前作者 xiuyingliao13978 次浏览最后编辑 5 年前来自 issues

这个字段有时是null,有时是" "

where 应该要怎么写?

 let _ = db.command;

    todo.where({

      imageshow: _.neq(null),

        imageshow: _.neq('')

     }).orderBy('timeshow', 'desc').limit(5).get

这样写不起作用

1 回复
gang82
gang821 楼3 年前

用or呗