【发布时间】:2017-09-07 13:19:26
【问题描述】:
我需要在我的 mongodb 集合中查询工头等于 nil 或“”的任何东西
这是我到目前为止所拥有的......但我不知道如何改变它来接受nil和"",我找到了这个,但它的超级不清楚,我无法让它工作
OR query matching nil or "" with Mongoid still matches ""?
where(foreman: '', status: 'Active').order_by(first_name: :asc)
【问题讨论】: