How to query MongoDB with "like"
I want to query something with SQL's like
query:
SELECT * FROM users WHERE name LIKE '%m%'
How can I achieve the same in MongoDB? I can't find an operator for like
in the documentation.
I want to query something with SQL's like
query:
SELECT * FROM users WHERE name LIKE '%m%'
How can I achieve the same in MongoDB? I can't find an operator for like
in the documentation.