I need to query my mongodb collection for anything that has a foreman equal to nil or ""
this is what I have so far... but I dont know how to alter it to accept nil
and ""
, I found this, but its SUPER not clear and I havent been able to make it work
OR query matching nil or "" with Mongoid still matches ""?
where(foreman: '', status: 'Active').order_by(first_name: :asc)