Query for values with a particular pattern

In mongodb, how to query for values with a particular pattern present?

Hi Deeksha, This can be done using:
db.users.find({“name”: /.m./})
The above query means that we are looking for something that contains “m” somewhere.
Hope this helps.