My Mongo collection document is as:
Array
(
[_id] => MongoId Object
(
[$id] => 52ddf885f786208bf58020df
)
[FirstName] => Aloma
[State] => AR
[Title] => AVP
[Zip] => 71953
[campaign_id] => Array
(
[0] => 52fba54fce798c441400002b
[1] => 52fba687ce798c441400002c
)
)
campaign_id is the array of mongoid's reference to other collection.
How can I get the documents with campaign_id = 52fba54fce798c441400002b
Here we have to search mongoid 52fba54fce798c441400002b
in array of campaign_id.