Checking if a field contains a string September 10, 2022 by Tarik You can do it with the following code. db.users.findOne({"username" : {$regex : "son"}});