Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How i can use “LIKE” operator in mongoose

// Using MongooseJS
var name="john";
UserSchema.find({name: { $regex: '.*' + name + '.*' } }).limit(5);
 
PREVIOUS NEXT
Tagged: #How #operator #mongoose
ADD COMMENT
Topic
Name
6+1 =