如果我有一个看起来像两个查询:执行两个Mongoid“any_in”的或查询
Store.any_in(:store_id => @user.stores_followed)
Store.any_in(:store_id => @category.stores)
我如何加入这些成或使用any_of?我试过这个,但没有。 我试图
Store.any_of({:store_id.any_in => @user.stores_followed},
{:store_id.any_in => @category.stores})