0
嵌套和或查詢在Mongoid前版本我會寫:如何使用Mongoid 3
Clothes.where("$or" => [{"$and" => [{_type: "Shoes"}, {is_secondhand: false}]},
{"$and"=> [{_type: "Shirts"}, {is_secondhand: true}]}])
我應該怎麼寫,在Mongoid 3.0.13?
它的工作原理,非常感謝。:) – alikewmk