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
If you want 'Like' search in mongo then you should go with $regex by using this query will be
db.product.find({name:{$regex:/m/i}})
for more you can read the documentation as well. https://docs.mongodb.com/manual/reference/operator/query/regex/