sql >> Base de Datos >  >> NoSQL >> MongoDB

¿Cómo usar $regex en mongodb?

Intente usar $regex con $options

Customer.find({'name': { $regex: 'FOO', $options: 'i' }}).exec(function (err, customer) {
     console.log(customer);
})