Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongo look for substring of field

//looking for substring which exists in value of some field
db.database.find({field: /substring/i })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongo #substring #field
ADD COMMENT
Topic
Name
6+9 =