I am trying to get the following mongo query work using PHP.
$users = array(26549,42852);
$db_mon_con = $mon_con->main;
$collection = $db_mon_con->main_a;
$cursor = $collection->find(array('userid' =>
array('$in' => $users)
)
);
One of the documents that should be returned looks like this :
{
"_id" : ObjectId("5284ef9a47ee3f45c73546f8"),
"id" : "22523",
"invitations" : [{
"employerid" : "1481",
"jobid" : "6272",
"createdon" : "2013-09-10 21:31:39",
"updatedon" : "2013-09-16 08:59:13",
"status" : "rejected",
"remarks" : "no activity"
}],
"name" : "ss",
"profilecompletion" : 0,
"userid" : "26549"
}