I want to query something with SQL's like query:
SELECT * FROM users WHERE name LIKE '%m%'
How to do I achieve the same in MongoDB? I can't find an operation for like in the documentation of codeigniter.
I want to query something with SQL's like query:
SELECT * FROM users WHERE name LIKE '%m%'
How to do I achieve the same in MongoDB? I can't find an operation for like in the documentation of codeigniter.
db.users.find({"name": /m/}))
Should be everything you need.