Answers for "like equivalent mongodb"

7

mongodb find like

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

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

Items.find({"description": {$regex: ".*" + variable + ".*"}}).fetch();
Posted by: Guest on May-21-2020
3

like mongodb

db.collection.find( { "url": { "$regex": ".*a.*"} } );
Posted by: Guest on March-20-2021
0

equivalente like en mongodb

db.tu_coleccion.find({"campo": /.*busqueda.*/});
Posted by: Guest on May-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language