Answers for "fine mongodb like text"

7

mongodb find like

db.users.find({"name": /.*m.*/});

db.users.find({"name": /m/});

Items.find({"description": {$regex: ".*" + variable + ".*"}}).fetch();
Posted by: Guest on May-21-2020
1

contains mongo-query string

db.users.findOne({"username" : {$regex : ".*son.*"}});
Posted by: Guest on October-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language