where string field is completed in mongodb code example Example: contains mongo-query string db.users.findOne({"username" : {$regex : ".*son.*"}});