like command in mongodb code example
Example 1: like mongodb
db.collection.find( { "url": { "$regex": ".*a.*"} } );
Example 2: like in mongodb
db.users.find({"name": /m/})
Example 3: like in mongodb
db.users.find({"name": /.*m.*/})
db.collection.find( { "url": { "$regex": ".*a.*"} } );
db.users.find({"name": /m/})
db.users.find({"name": /.*m.*/})