Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb find like

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

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

Items.find({"description": {$regex: ".*" + variable + ".*"}}).fetch();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #find
ADD COMMENT
Topic
Name
5+4 =