How to check if a field contains a substring? Technology Community › Category: MongoDB › How to check if a field contains a substring? 0 Vote Up Vote Down VietMX Staff asked 4 years ago Consider: db.users.findOne({"username" : {$regex : ".*subsctring.*"}});