Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How i can use “LIKE” operator in mongoose

// Using MongoDB Driver
var colName="v";
 models.customer.find({ "abc": { $regex: '.*' + colName + '.*' } },
   function(err,data){
         console.log('data',data);
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #operator #mongoose
ADD COMMENT
Topic
Name
5+7 =