mongoid

Queryable#all

Add $all selection. Documents must match all values provided in the array. Also can be written with: Queryable#all_in

如果是一个数组,用in

组where 

conditions = {}
conditons[:id.in] = [1,2,3]

 

posted @ 2013-04-12 16:37  scu张小磊  阅读(90)  评论(0)    收藏  举报