where 一个字段不为null 或'' ,要怎么写?
发布于 4 年前 作者 xiuyingliao 13685 次浏览 来自 官方Issues

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

where 应该要怎么写?

 let _ = db.command;

    todo.where({

      imageshow: _.neq(null),

        imageshow: _.neq('')

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

这样写不起作用

1 回复
回到顶部