- One way to find the result as with equivalent to like query
db.collection.find({name:{'$regex' : 'string', '$options' : 'i'}})
Where i use for cases insensitive fetch data
- Another way by which we can get result also
db.collection.find({"name":/aus/})
Above will provide the result which have the aus in name cantaing aus.