Horje
how to query mongodb with like Code Example
mongodb find like
db.users.find({"name": /.*m.*/});

db.users.find({"name": /m/});

Items.find({"description": {$regex: ".*" + variable + ".*"}}).fetch();
like mongodb
db.collection.find( { "url": { "$regex": ".*a.*"} } );
how to query mongodb with like
db.users.find({"name": /m/})
or
db.users.find({"name": /.*m.*/})

You're looking for something that contains "m" somewhere
(SQL's '%' operator is equivalent to Regexp's '.*'), 
not something that has "m" anchored to the beginning of the string.
like in mongodb
db.users.find({"name": /m/})




Shell

Related
install pipenv Code Example install pipenv Code Example
ubuntu print path Code Example ubuntu print path Code Example
List most recent file Code Example List most recent file Code Example
linux sudo /opt/lampp/lampp start command not found Code Example linux sudo /opt/lampp/lampp start command not found Code Example
ubuntu change file owner Code Example ubuntu change file owner Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11