[Solved] How to or in a ruby on rails Mongodb query? [closed]


For Mongoid I use ‘any_of’. This should work:

Member.any_of({:name => x, :age => 42})

Also here’s a link to some other queries you can use with mongoid. I don’t see these in their main doc page:

http://two.mongoid.org/docs/querying/criteria.html#any_of

0

solved How to or in a ruby on rails Mongodb query? [closed]