Answers for "mongodb recherche like"

1

mongodb recherche 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.
Posted by: Guest on March-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language