Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose search query for a word in a field

var regex = new RegExp(string, "i");
Db.find({ name: regex }
 
PREVIOUS NEXT
Tagged: #mongoose #search #query #word #field
ADD COMMENT
Topic
Name
8+7 =