vve*_*138 2 ruby-on-rails mongoid
如何查询Mongoid,'where not not null'?例如
where('comment_id IS NOT NULL')
怎么用mongoid?
Aru*_*hit 9
你可以用 $ne
$ne
where(:comment_id.ne => nil)
查询的相关文档.
归档时间:
10 年,10 月 前
查看次数:
2527 次
最近记录:
6 年,2 月 前