I want to query something with SQL\'s like query:
like
SELECT * FROM users WHERE name LIKE \'%m%\'
How to do I achieve the same in
In PHP, you could use following code:
$collection->find(array('name'=> array('$regex' => 'm'));