Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose get elements that contain substring

Books.find(
    { "authors": { "$regex": "Alex", "$options": "i" } },
    function(err,docs) { 
    } 
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongoose #elements #substring
ADD COMMENT
Topic
Name
8+5 =